This commit is contained in:
2025-12-11 09:10:55 +03:30
parent 3957c9cdf1
commit 9ad229fc16
@@ -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}`);