[Feature] Implement Self-Serve Account Deletion

This commit is contained in:
Amruth Pillai
2023-01-19 00:11:15 +01:00
parent 5024c19f87
commit ff101dbfac
14 changed files with 235 additions and 14 deletions

View File

@ -176,8 +176,12 @@ export class ResumeService {
return this.resumeRepository.save<Resume>(updatedResume);
}
async remove(id: number, userId: number) {
await this.resumeRepository.delete({ id, user: { id: userId } });
remove(id: number, userId: number) {
return this.resumeRepository.delete({ id, user: { id: userId } });
}
removeAllByUser(userId: number) {
return this.resumeRepository.delete({ user: { id: userId } });
}
async duplicate(id: number, userId: number) {