Fixed case sensitivity in tag search.
This commit is contained in:
parent
c9ab3bfe84
commit
b43d1a6b31
|
@ -40,8 +40,8 @@ export async function fetchTags(options = {}) {
|
|||
|
||||
if (options.query) {
|
||||
builder
|
||||
.where('name', 'like', `%${options.query}%`)
|
||||
.orWhere('slug', 'like', `%${options.query}%`);
|
||||
.whereILike('name', `%${options.query}%`)
|
||||
.orWhereILike('slug', `%${options.query}%`);
|
||||
}
|
||||
}),
|
||||
knex('tags_posters')
|
||||
|
|
Loading…
Reference in New Issue