Case insensitive search on tags

This commit is contained in:
Chocobozzz 2022-02-03 10:24:48 +01:00
parent e17358fa33
commit cd8f207a8e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -545,7 +545,7 @@ export class VideosIdListQueryBuilder extends AbstractRunQuery {
' EXISTS (' +
' SELECT 1 FROM "videoTag" ' +
' INNER JOIN "tag" ON "tag"."id" = "videoTag"."tagId" ' +
` WHERE lower("tag"."name") = ${escapedSearch} ` +
` WHERE lower("tag"."name") = lower(${escapedSearch}) ` +
' AND "video"."id" = "videoTag"."videoId"' +
' )'