forked from FoundKeyGang/FoundKey
server: fix return of visibilityQuery
function
This commit is contained in:
parent
c8731333ba
commit
32f4bee5e8
1 changed files with 2 additions and 2 deletions
|
@ -8,10 +8,10 @@ export function visibilityQuery(q: SelectQueryBuilder<Note>, meId?: User['id'] |
|
|||
.from(() => q, 'note');
|
||||
|
||||
if (meId == null) {
|
||||
superQuery.where('note_visible(note.id, null);');
|
||||
superQuery.where('note_visible(note.id, null)');
|
||||
} else {
|
||||
superQuery.where('note_visible(note.id, :meId)', { meId });
|
||||
}
|
||||
|
||||
return q;
|
||||
return superQuery;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue