Allowing partial and case-insensitive results from entity and actor search.
This commit is contained in:
@@ -29,8 +29,8 @@ export async function fetchEntities(options) {
|
||||
if (options.query) {
|
||||
builder.where((whereBuilder) => {
|
||||
whereBuilder
|
||||
.whereLike('name', options.query)
|
||||
.orWhereLike('slug', options.query);
|
||||
.whereILike('name', `%${options.query}%`)
|
||||
.orWhereILike('slug', `%${options.query}%`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user