fix drive search query
Compare changes
@@ -10,6 +10,7 @@ import { QueryService } from '@/core/QueryService.js';
@@ -63,7 +64,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
What does this PR do?
.andWhere
does not add parentheses, so that or
changed the whole meaning of the query. In particular, it returned files belonging to other users!
Tested on my laptop, also checked that the queries are correct by modifying postgresql.ts
and making it log the whole query, not just the first 100 characters.
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines