mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
add login flow for waiting list demo app
This commit is contained in:
@ -56,6 +56,8 @@ export class NotificationsService {
|
||||
scope: NotificationScope.USER_INVITED,
|
||||
channel: NotificationChannel.EMAIL,
|
||||
});
|
||||
console.log('++++++++++++++++++++++++=');
|
||||
console.log(data);
|
||||
return this.eventEmitter.emit(EventType.NOTIFICATION_CREATED, notification, data.data);
|
||||
}
|
||||
|
||||
@ -71,7 +73,7 @@ export class NotificationsService {
|
||||
|
||||
this.logger.log(`emitting ${EventType.NOTIFICATION_CREATED} event`);
|
||||
|
||||
return this.eventEmitter.emit(EventType.NOTIFICATION_CREATED, notification);
|
||||
return this.eventEmitter.emit(EventType.NOTIFICATION_CREATED, notification, { otp });
|
||||
}
|
||||
|
||||
private async sendPushNotification(userId: string, title: string, body: string) {
|
||||
|
||||
Reference in New Issue
Block a user