fix bug in create user notif
This commit is contained in:
@@ -85,6 +85,7 @@ export class NotificationService {
|
|||||||
return this.em.create(Notification, {
|
return this.em.create(Notification, {
|
||||||
restaurant: param.restaurantId,
|
restaurant: param.restaurantId,
|
||||||
admin: param.adminId,
|
admin: param.adminId,
|
||||||
|
user: param.userId && param.userId.trim() !== '' ? param.userId : null,
|
||||||
title: param.title,
|
title: param.title,
|
||||||
content: param.content,
|
content: param.content,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user