From 952a4e589d40ad6553ee1ee2533a074320c35d31 Mon Sep 17 00:00:00 2001 From: vishnu vinay Date: Thu, 13 Feb 2025 12:46:40 +0530 Subject: [PATCH] Fix : Defualt user list issue --- src/adapters/postgres/user-adapter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adapters/postgres/user-adapter.ts b/src/adapters/postgres/user-adapter.ts index 7f65cb9..509e45f 100644 --- a/src/adapters/postgres/user-adapter.ts +++ b/src/adapters/postgres/user-adapter.ts @@ -348,6 +348,7 @@ export class PostgresUserService implements IServicelocator { const userRoles = await this.getUserRoles(userId, tenantId); if (userRoles.code === "cohort_admin") { + tenantCohortRoleMapping.tenantId = ""; tenantCohortRoleMapping.cohortId = await this.getCohortIdsForTenant(userId, tenantId); } else if (userRoles.code === "tenant_admin") { tenantCohortRoleMapping.cohortId = [];