diff --git a/modules/notification/notification.controller.js b/modules/notification/notification.controller.js index bed8e2e..b238553 100644 --- a/modules/notification/notification.controller.js +++ b/modules/notification/notification.controller.js @@ -158,7 +158,7 @@ const extraControllers = { _userIds = userIds; } else { if (eventId) { - _userIds = _getUserIdsForEventId(eventId, segment); + _userIds = await _getUserIdsForEventId(eventId, segment); } else { return handleErrorResponse(controllerOptions.MODULE_NAME, 'sendNotification', new Error('Missing event and segment'), res) }