Improved search, linking results to scenes page, updating on input clear.
This commit is contained in:
@@ -49,7 +49,8 @@ export async function fetchEntities(options = {}) {
|
||||
.where((subBuilder) => {
|
||||
subBuilder
|
||||
.whereILike('entities.name', `%${options.query}%`)
|
||||
.orWhereILike('entities.slug', `%${options.query}%`);
|
||||
.orWhereILike('entities.slug', `%${options.query}%`)
|
||||
.orWhereILike(knex.raw('array_to_string(entities.alias, \',\', \'*\')'), `%${options.query}%`);
|
||||
})
|
||||
.whereNot('entities.type', 'info');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user