notif
This commit is contained in:
@@ -73,14 +73,14 @@ export class NotificationService {
|
|||||||
notificationId: notification.id,
|
notificationId: notification.id,
|
||||||
notificationType: preference.notificationType,
|
notificationType: preference.notificationType,
|
||||||
};
|
};
|
||||||
if (preference.notificationType === NotificationType.SMS) {
|
// if (preference.notificationType === NotificationType.SMS) {
|
||||||
await this.queueService.addSmsNotification(job);
|
// await this.queueService.addSmsNotification(job);
|
||||||
} else if (preference.notificationType === NotificationType.PUSH) {
|
// } else if (preference.notificationType === NotificationType.PUSH) {
|
||||||
await this.queueService.addPushNotification(job);
|
// await this.queueService.addPushNotification(job);
|
||||||
} else if (preference.notificationType === NotificationType.Both) {
|
// } else if (preference.notificationType === NotificationType.Both) {
|
||||||
await this.queueService.addSmsNotification(job);
|
// await this.queueService.addSmsNotification(job);
|
||||||
await this.queueService.addPushNotification(job);
|
// await this.queueService.addPushNotification(job);
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.logger.log(`Queued notification for restaurant ${restaurantId}, title ${title}`);
|
this.logger.log(`Queued notification for restaurant ${restaurantId}, title ${title}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user