Fixed case sensitivity in tag search.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user