add login flow for waiting list demo app

This commit is contained in:
Abdalhamid Alhamad
2025-03-04 14:42:02 +03:00
parent 54ce5b022d
commit 9b5f863577
16 changed files with 184 additions and 21 deletions

View File

@ -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) {