summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/i/notifications.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-20 11:05:33 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-20 11:05:33 +0900
commite523e54881834a50b7b5e1f0efebcc98cfc34dd7 (patch)
treed1205c11c3b88acb303b459586062b423f69dc0b /src/server/api/endpoints/i/notifications.ts
parentfix: suppress disk stats error (diff)
downloadsharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.tar.gz
sharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.tar.bz2
sharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.zip
perf(server): Reduce database query
Diffstat (limited to 'src/server/api/endpoints/i/notifications.ts')
-rw-r--r--src/server/api/endpoints/i/notifications.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/i/notifications.ts b/src/server/api/endpoints/i/notifications.ts
index 7a423edb8d..af49549d37 100644
--- a/src/server/api/endpoints/i/notifications.ts
+++ b/src/server/api/endpoints/i/notifications.ts
@@ -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);
});