chore: mark all as read in notifications
This commit is contained in:
@@ -89,6 +89,8 @@ export class AuthService {
|
||||
|
||||
const tokens = this.tokensService.generateAccessAndRefreshToken({ sub: user.id, role: user.role.name });
|
||||
|
||||
await this.notificationService.createLoginNotification(user.id);
|
||||
|
||||
return {
|
||||
message: AuthMessage.PASSWORD_LOGIN_SUCCESS,
|
||||
...tokens,
|
||||
@@ -159,8 +161,7 @@ export class AuthService {
|
||||
|
||||
const tokens = this.tokensService.generateAccessAndRefreshToken({ sub: user.id, role: user.role.name });
|
||||
|
||||
const { notification } = await this.notificationService.createLoginNotification(user.id);
|
||||
console.log(notification);
|
||||
await this.notificationService.createLoginNotification(user.id);
|
||||
return {
|
||||
message: AuthMessage.LOGIN_SUCCESS,
|
||||
...tokens,
|
||||
|
||||
Reference in New Issue
Block a user