From 1d29750c342bf1b2b5710f1d238da146b2f2f422 Mon Sep 17 00:00:00 2001 From: Ellie Re'em Date: Thu, 28 Sep 2023 20:53:40 +0200 Subject: [PATCH] Fix cypress delete users endpoint --- 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 a32e04a3..76ab3cd3 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -358,7 +358,7 @@ export class UserService { const queryResult = await this.userRepository .createQueryBuilder('user') .select() - .where('user.name ILIKE :searchTerm', { searchTerm: `Cypress test` }) + .where('user.name LIKE :searchTerm', { searchTerm: `%Cypress test user%` }) .getMany(); const deletedUsers = await Promise.all(