fix: group only access to project failing

This commit is contained in:
=
2024-12-16 16:09:05 +05:30
parent 64a982d5e0
commit 44303aca6a
+1 -1
View File
@@ -51,7 +51,7 @@ export const projectDALFactory = (db: TDbClient) => {
.join(TableName.Project, `${TableName.GroupProjectMembership}.projectId`, `${TableName.Project}.id`) .join(TableName.Project, `${TableName.GroupProjectMembership}.projectId`, `${TableName.Project}.id`)
.where(`${TableName.Project}.orgId`, orgId) .where(`${TableName.Project}.orgId`, orgId)
.andWhere((qb) => { .andWhere((qb) => {
if (projectType) { if (projectType !== "all") {
void qb.where(`${TableName.Project}.type`, projectType); void qb.where(`${TableName.Project}.type`, projectType);
} }
}) })