Fix search SQL query where duplication

pull/2356/head
Chocobozzz 2019-12-23 13:43:05 +01:00
parent 611a72ae15
commit def2a70b7e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ export type AvailableForListIDsOptions = {
return query
},
[ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => {
const whereAnd = options.baseWhere ? options.baseWhere : []
const whereAnd = options.baseWhere ? [].concat(options.baseWhere) : []
const query: FindOptions = {
raw: true,