From f579d6eece0e9f383428770a4899d3fc06c97ca7 Mon Sep 17 00:00:00 2001 From: Aish1990 Date: Thu, 8 Aug 2024 18:01:05 +0530 Subject: [PATCH 1/2] fixed all organization at admin --- apps/drec-api/src/pods/organization/organization.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/drec-api/src/pods/organization/organization.service.ts b/apps/drec-api/src/pods/organization/organization.service.ts index 8e6a8042b..d9d5f166b 100755 --- a/apps/drec-api/src/pods/organization/organization.service.ts +++ b/apps/drec-api/src/pods/organization/organization.service.ts @@ -537,7 +537,7 @@ export class OrganizationService { query.andWhere(baseQuery, { organizationName: `%${organizationName}%` }); } if (organizationType) { - query.andWhere(`organization.organizationType != :organizationType`, { + query.andWhere(`organization.organizationType NOT LIKE :organizationType`, { organizationType: `%${organizationType}%`, }); } From 9d9e64ed3eb44a041874019c53f9ef6219a63473 Mon Sep 17 00:00:00 2001 From: Aish1990 Date: Thu, 8 Aug 2024 18:09:35 +0530 Subject: [PATCH 2/2] prettier fix --- .../src/pods/organization/organization.service.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/drec-api/src/pods/organization/organization.service.ts b/apps/drec-api/src/pods/organization/organization.service.ts index d9d5f166b..e95ef1909 100755 --- a/apps/drec-api/src/pods/organization/organization.service.ts +++ b/apps/drec-api/src/pods/organization/organization.service.ts @@ -537,9 +537,12 @@ export class OrganizationService { query.andWhere(baseQuery, { organizationName: `%${organizationName}%` }); } if (organizationType) { - query.andWhere(`organization.organizationType NOT LIKE :organizationType`, { - organizationType: `%${organizationType}%`, - }); + query.andWhere( + `organization.organizationType NOT LIKE :organizationType`, + { + organizationType: `%${organizationType}%`, + }, + ); } return query; }