Skip to content

Commit

Permalink
fix: fix getPushNotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed May 9, 2024
1 parent 3b0263e commit 0c38267
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/notification/services/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -83,8 +82,6 @@ export default factories.createCoreService(MODULE_ID, ({ strapi }) => {
populate: NOTIFICATIONS_POPULATE
}
)

return [notifications, notificationsForAll]
},
updateLastConsumedNotificationDate() {
return strapi.entityService.update(
Expand Down

0 comments on commit 0c38267

Please sign in to comment.