X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fmodels%2Fvideo%2Fvideo-channel.ts;h=f84b85290ef3ebfab6f8cacbc700404060a7c673;hb=37a44fc915eef2140e22ceb96aba6b6eb2509007;hp=33749ea70fef997ce20c346b9f61fbf0e599ceff;hpb=33eb19e5199cc9fa4d73c6675c97508e3e072ef9;p=github%2FChocobozzz%2FPeerTube.git 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"` sort: string }) { const attributesInclude = [] - const escapedSearch = VideoModel.sequelize.escape(options.search) - const escapedLikeSearch = VideoModel.sequelize.escape('%' + options.search + '%') + const escapedSearch = VideoChannelModel.sequelize.escape(options.search) + const escapedLikeSearch = VideoChannelModel.sequelize.escape('%' + options.search + '%') attributesInclude.push(createSimilarityAttribute('VideoChannelModel.name', options.search)) const query = {