db/events: fix type error
This commit is contained in:
parent
5d19c21f51
commit
aea07fd28a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue