db/events: fix type error

This commit is contained in:
Alex Gleason 2023-09-04 22:16:43 -05:00
parent 5d19c21f51
commit aea07fd28a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ function getFilterQuery(filter: DittoFilter) {
if (typeof filter.local === 'boolean') {
query = filter.local
? query.innerJoin('users', 'users.pubkey', 'events.pubkey')
? query.innerJoin('users', 'users.pubkey', 'events.pubkey') as typeof query
: query.leftJoin('users', 'users.pubkey', 'events.pubkey').where('users.pubkey', 'is', null);
}