1
0
Fork 0

Case insensitive tags search

This commit is contained in:
Chocobozzz 2019-12-27 08:49:31 +01:00
parent bc584963ff
commit 227eb02f9a
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -1371,7 +1371,7 @@ export class VideoModel extends Model<VideoModel> {
'UNION ALL ' +
'SELECT "video"."id" FROM "video" LEFT JOIN "videoTag" ON "videoTag"."videoId" = "video"."id" ' +
'INNER JOIN "tag" ON "tag"."id" = "videoTag"."tagId" ' +
'WHERE "tag"."name" = ' + escapedSearch +
'WHERE lower("tag"."name") = lower(' + escapedSearch + ')' +
')'
)
}