Fixed case sensitivity in tag search.

This commit is contained in:
DebaucheryLibrarian 2024-06-07 04:17:00 +02:00
parent c9ab3bfe84
commit b43d1a6b31
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ export async function fetchTags(options = {}) {
if (options.query) { if (options.query) {
builder builder
.where('name', 'like', `%${options.query}%`) .whereILike('name', `%${options.query}%`)
.orWhere('slug', 'like', `%${options.query}%`); .orWhereILike('slug', `%${options.query}%`);
} }
}), }),
knex('tags_posters') knex('tags_posters')