feat: resolving bugs in checklist testing

This commit is contained in:
=
2025-10-10 00:09:46 +05:30
parent c2490380f0
commit 44b50c93c3
19 changed files with 140 additions and 111 deletions
@@ -236,7 +236,8 @@ export const permissionDALFactory = (db: TDbClient): TPermissionDALFactory => {
} else if (actorType === ActorType.IDENTITY) {
void qb.where(`${TableName.Membership}.actorIdentityId`, actorId);
}
})
.where((qb) => {
if (scopeData.scope === AccessScope.Organization) {
void qb.where(`${TableName.Membership}.scope`, AccessScope.Organization);
} else if (scopeData.scope === AccessScope.Namespace) {
@@ -361,6 +362,8 @@ export const permissionDALFactory = (db: TDbClient): TPermissionDALFactory => {
}
]
});
console.log(">>>", data);
return data;
} catch (error) {
throw new DatabaseError({ error, name: "Get Permission" });
@@ -95,7 +95,6 @@ export type TPermissionServiceFactory = {
membershipId: string;
}[];
}>;
// TODO(simp): switch to role dal later
getOrgPermissionByRoles: (
roles: string[],
orgId: string