perf(server): Reduce database query

This commit is contained in:
syuilo 2021-03-20 11:05:33 +09:00
parent 606e5c0878
commit e523e54881
2 changed files with 58 additions and 11 deletions

View file

@ -112,5 +112,5 @@ export default define(meta, async (ps, user) => {
readNotification(user.id, notifications.map(x => x.id));
}
return await Notifications.packMany(notifications);
return await Notifications.packMany(notifications, user.id);
});