perf(server): Reduce database query
This commit is contained in:
parent
606e5c0878
commit
e523e54881
2 changed files with 58 additions and 11 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue