From 44303aca6a0ead37e159456b7d126f253693955e Mon Sep 17 00:00:00 2001 From: = Date: Mon, 16 Dec 2024 16:09:05 +0530 Subject: [PATCH] fix: group only access to project failing --- backend/src/services/project/project-dal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/project/project-dal.ts b/backend/src/services/project/project-dal.ts index 992789da20..896e1b8581 100644 --- a/backend/src/services/project/project-dal.ts +++ b/backend/src/services/project/project-dal.ts @@ -51,7 +51,7 @@ export const projectDALFactory = (db: TDbClient) => { .join(TableName.Project, `${TableName.GroupProjectMembership}.projectId`, `${TableName.Project}.id`) .where(`${TableName.Project}.orgId`, orgId) .andWhere((qb) => { - if (projectType) { + if (projectType !== "all") { void qb.where(`${TableName.Project}.type`, projectType); } })