use cache in NotificationEntityService

This commit is contained in:
Hazelnoot 2025-09-18 20:25:42 -04:00
parent b3b08e2315
commit 3fc17fd0ee
4 changed files with 36 additions and 36 deletions

View file

@ -191,7 +191,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
// this matches the logic in NotificationService and it's what MkPagination expects
if (ps.sinceId && !ps.untilId) groupedNotifications.reverse();
return await this.notificationEntityService.packGroupedMany(groupedNotifications, me.id);
return await this.notificationEntityService.packGroupedMany(groupedNotifications, me);
});
}
}

View file

@ -95,7 +95,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.notificationService.readAllNotification(me.id);
}
return await this.notificationEntityService.packMany(notifications, me.id);
return await this.notificationEntityService.packMany(notifications, me);
});
}
}