mirror of https://github.com/Chocobozzz/PeerTube
Fix search SQL query where duplication
parent
611a72ae15
commit
def2a70b7e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue