Skip to content

Commit

Permalink
query
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Mar 27, 2024
1 parent c8c894b commit 08dd8aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ export class SearchService {
}
if (opts.fileOption) {
if (opts.fileOption === 'file-only') {
query.andWhere('note.fileIds != \'{}\'')

Check failure on line 247 in packages/backend/src/core/SearchService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

Missing semicolon
} if (opts.fileOption === 'no-file') {
query.andWhere('note.fileIds == \'{}\'')

Check failure on line 249 in packages/backend/src/core/SearchService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

Missing semicolon
}
}
this.queryService.generateVisibilityQuery(query, me);
Expand Down

0 comments on commit 08dd8aa

Please sign in to comment.