update
This commit is contained in:
@@ -46,10 +46,13 @@ export class NotificationService {
|
||||
if (preference?.channels?.includes(NotifChannelEnum.IN_APP)) {
|
||||
recipients.forEach(recipient => {
|
||||
if ('adminId' in recipient) {
|
||||
this.notificationGateway.sendInAppNotification({ adminId: recipient.adminId, restaurantId }, 'notification', {
|
||||
title: message.subject,
|
||||
content: message.body,
|
||||
});
|
||||
this.notificationGateway.sendInAppNotification(
|
||||
{ adminId: recipient.adminId, restaurantId },
|
||||
{
|
||||
subject: message.subject,
|
||||
body: message.body,
|
||||
},
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user