chore: mark all as read in notifications

This commit is contained in:
Matin
2025-02-08 16:14:10 +03:30
parent e4f201bea2
commit ab3f3f8eaf
7 changed files with 77 additions and 21 deletions
+3 -2
View File
@@ -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,