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) {
|
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')
|
||||||
|
|
Loading…
Reference in New Issue