diff --git a/src/domain/users/services/users.service.ts b/src/domain/users/services/users.service.ts index a0051bb..41739b4 100644 --- a/src/domain/users/services/users.service.ts +++ b/src/domain/users/services/users.service.ts @@ -390,8 +390,13 @@ export class UsersService implements Users.IUsersService { .leftJoinAndSelect('it.info', 'info') .where( new Brackets(subQuery => { - subQuery.where('info.firstName ILIKE :search', { search: toSearch }) - subQuery.orWhere('info.lastName ILIKE :search', { search: toSearch }) + subQuery + .where("info.firstName || ' ' || info.lastName ILIKE :search", { + search: toSearch, + }) + .orWhere("info.lastName || ' ' || info.firstName ILIKE :search", { + search: toSearch, + }) }), )