This commit is contained in:
2025-12-14 11:57:35 +03:30
parent 1d4a50f91f
commit 2f21791e23
2 changed files with 22 additions and 1 deletions
@@ -50,6 +50,7 @@ export class NotificationService {
})),
);
}
// add sms notifications to queue
if (preference?.channels?.includes(NotifChannelEnum.SMS)) {
await this.queueService.addBulkSmsNotifications(
@@ -140,6 +141,7 @@ export class NotificationService {
},
);
}
async findByAdminAndRestaurant(adminId: string, restaurantId: string, limit = 50): Promise<Notification[]> {
return this.em.find(
Notification,