mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-10 09:04:23 +01:00
EventsDB: fix this binding of usersQuery
This commit is contained in:
@@ -187,7 +187,7 @@ class EventsDB implements EventStore {
|
||||
|
||||
if (typeof filter.local === 'boolean') {
|
||||
query = query
|
||||
.leftJoin(this.usersQuery, (join) => join.onRef('users.d_tag', '=', 'events.pubkey'))
|
||||
.leftJoin(() => this.usersQuery(), (join) => join.onRef('users.d_tag', '=', 'events.pubkey'))
|
||||
.where('users.d_tag', filter.local ? 'is not' : 'is', null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user