aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-23 13:43:05 +0100
committerChocobozzz <me@florianbigard.com>2019-12-23 13:44:24 +0100
commitdef2a70b7e5ee807d7b532df8c9d33d17d24ccbb (patch)
treef7511d4fb38aec399b97d0d1e2b56ec2a064a9bb /server/models/video/video.ts
parent611a72ae15ff0cd67e5abba215c8f8566652eb98 (diff)
downloadPeerTube-def2a70b7e5ee807d7b532df8c9d33d17d24ccbb.tar.gz
PeerTube-def2a70b7e5ee807d7b532df8c9d33d17d24ccbb.tar.zst
PeerTube-def2a70b7e5ee807d7b532df8c9d33d17d24ccbb.zip
Fix search SQL query where duplication
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index e58146ccf..990c66907 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -316,7 +316,7 @@ export type AvailableForListIDsOptions = {
316 return query 316 return query
317 }, 317 },
318 [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => { 318 [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => {
319 const whereAnd = options.baseWhere ? options.baseWhere : [] 319 const whereAnd = options.baseWhere ? [].concat(options.baseWhere) : []
320 320
321 const query: FindOptions = { 321 const query: FindOptions = {
322 raw: true, 322 raw: true,