mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix notifications erroring in certain cases
This commit is contained in:
parent
55ea57391b
commit
76056f76d4
|
|
@ -99,7 +99,9 @@ export default apiRoute<typeof meta, typeof schema>(
|
|||
: undefined,
|
||||
min_id ? gt(notification.id, min_id) : undefined,
|
||||
eq(notification.notifiedId, user.id),
|
||||
eq(notification.accountId, account_id),
|
||||
account_id
|
||||
? eq(notification.accountId, account_id)
|
||||
: undefined,
|
||||
not(eq(notification.accountId, user.id)),
|
||||
types
|
||||
? inArray(notification.type, types)
|
||||
|
|
|
|||
Loading…
Reference in a new issue