Merge pull request #2884 from akhilmhdh/fix/group-access-failing

This commit is contained in:
Maidul Islam
2024-12-16 09:25:01 -05:00
committed by GitHub

View File

@@ -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);
}
})