aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 33749ea70..f84b85290 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -434,8 +434,8 @@ ON "Account->Actor"."serverId" = "Account->Actor->Server"."id"`
434 sort: string 434 sort: string
435 }) { 435 }) {
436 const attributesInclude = [] 436 const attributesInclude = []
437 const escapedSearch = VideoModel.sequelize.escape(options.search) 437 const escapedSearch = VideoChannelModel.sequelize.escape(options.search)
438 const escapedLikeSearch = VideoModel.sequelize.escape('%' + options.search + '%') 438 const escapedLikeSearch = VideoChannelModel.sequelize.escape('%' + options.search + '%')
439 attributesInclude.push(createSimilarityAttribute('VideoChannelModel.name', options.search)) 439 attributesInclude.push(createSimilarityAttribute('VideoChannelModel.name', options.search))
440 440
441 const query = { 441 const query = {