We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652dae2 commit 98d3bb6Copy full SHA for 98d3bb6
src/auth/auth.service.ts
@@ -42,7 +42,7 @@ export class AuthService {
42
payload: JwtPayload,
43
): Promise<JwtPayload | undefined> {
44
return await this.userSerivce.findByFields({
45
- where: { id: payload.id },
+ where: { id: payload.id, status: 'activated' },
46
});
47
}
48
0 commit comments