From cf576d40b7dd35bd2a6b6690c35a380d10f75f8d Mon Sep 17 00:00:00 2001 From: Anna Hughes Date: Wed, 17 Apr 2024 10:45:05 +0100 Subject: [PATCH] fix: getUsers query partial email ilike (#413) --- src/user/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 8a0be8ef..686da53f 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -410,7 +410,7 @@ export class UserService { const users = await this.userRepository.find({ relations: relations, where: { - ...(filters.email && { email: ILike(filters.email) }), + ...(filters.email && { email: ILike(`%${filters.email}%`) }), ...(filters.partnerAccess && { partnerAccess: { ...(filters.partnerAccess.userId && { userId: filters.partnerAccess.userId }),