chore: add notification service for all user action

This commit is contained in:
mahyargdz
2025-02-28 19:43:53 +03:30
parent 5b1b574d41
commit e65334150c
19 changed files with 709 additions and 74 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ export class AuthService {
const tokens = this.generateAccessAndRefreshToken(user);
await this.notificationService.createLoginNotification(user.id);
await this.notificationService.createLoginNotification(user.id, { userPhone: user.phone });
return {
message: AuthMessage.PASSWORD_LOGIN_SUCCESS,
@@ -176,7 +176,7 @@ export class AuthService {
const tokens = this.generateAccessAndRefreshToken(user);
await this.notificationService.createLoginNotification(user.id);
await this.notificationService.createLoginNotification(user.id, { userPhone: user.phone });
return {
message: AuthMessage.LOGIN_SUCCESS,
...tokens,