From 9ad229fc16cd3ade753f95a158ee1d51a8cc6c03 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Thu, 11 Dec 2025 09:10:55 +0330 Subject: [PATCH] notif --- .../services/notification.service.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/notifications/services/notification.service.ts b/src/modules/notifications/services/notification.service.ts index b6c54d7..3e80ac1 100644 --- a/src/modules/notifications/services/notification.service.ts +++ b/src/modules/notifications/services/notification.service.ts @@ -73,14 +73,14 @@ export class NotificationService { notificationId: notification.id, notificationType: preference.notificationType, }; - if (preference.notificationType === NotificationType.SMS) { - await this.queueService.addSmsNotification(job); - } else if (preference.notificationType === NotificationType.PUSH) { - await this.queueService.addPushNotification(job); - } else if (preference.notificationType === NotificationType.Both) { - await this.queueService.addSmsNotification(job); - await this.queueService.addPushNotification(job); - } + // if (preference.notificationType === NotificationType.SMS) { + // await this.queueService.addSmsNotification(job); + // } else if (preference.notificationType === NotificationType.PUSH) { + // await this.queueService.addPushNotification(job); + // } else if (preference.notificationType === NotificationType.Both) { + // await this.queueService.addSmsNotification(job); + // await this.queueService.addPushNotification(job); + // } this.logger.log(`Queued notification for restaurant ${restaurantId}, title ${title}`);