diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-20 11:05:33 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-20 11:05:33 +0900 |
| commit | e523e54881834a50b7b5e1f0efebcc98cfc34dd7 (patch) | |
| tree | d1205c11c3b88acb303b459586062b423f69dc0b /src/server/api/endpoints/i | |
| parent | fix: suppress disk stats error (diff) | |
| download | sharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.tar.gz sharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.tar.bz2 sharkey-e523e54881834a50b7b5e1f0efebcc98cfc34dd7.zip | |
perf(server): Reduce database query
Diffstat (limited to 'src/server/api/endpoints/i')
| -rw-r--r-- | src/server/api/endpoints/i/notifications.ts | 2 |
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); }); |