chore: add notification service for all user action
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user