Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Delete sessions on deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 15, 2020
1 parent d03afb8 commit ed3b942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class UsersService {
where: { id },
data: { active: false },
});
await this.prisma.sessions.deleteMany({ where: { user: { id } } });
return this.prisma.expose<users>(user);
}

Expand Down

0 comments on commit ed3b942

Please sign in to comment.