From 0c382676757027fa6769caa83002244a871fd82d Mon Sep 17 00:00:00 2001 From: shoom3301 Date: Thu, 9 May 2024 11:11:08 +0300 Subject: [PATCH] fix: fix getPushNotifications --- src/api/notification/services/notification.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api/notification/services/notification.ts b/src/api/notification/services/notification.ts index 931efdb..02dc67d 100644 --- a/src/api/notification/services/notification.ts +++ b/src/api/notification/services/notification.ts @@ -69,8 +69,7 @@ export default factories.createCoreService(MODULE_ID, ({ strapi }) => { const lastConsumedNotificationDate = global?.lastConsumedNotificationDate - const notificationsForAll = await this.getNotificationsForAll(push) - const notifications = await strapi.entityService.findMany( + return strapi.entityService.findMany( MODULE_ID, { limit: 200, @@ -83,8 +82,6 @@ export default factories.createCoreService(MODULE_ID, ({ strapi }) => { populate: NOTIFICATIONS_POPULATE } ) - - return [notifications, notificationsForAll] }, updateLastConsumedNotificationDate() { return strapi.entityService.update(