feat: go greppy

This commit is contained in:
=
2025-10-10 00:09:48 +05:30
parent fe1bc168f6
commit 97135d9cfa
46 changed files with 150 additions and 106 deletions
@@ -42,12 +42,7 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
.select("role")
.from(TableName.MembershipRole)
.leftJoin(TableName.Role, `${TableName.Role}.id`, `${TableName.MembershipRole}.customRoleId`)
.whereRaw("??.?? = ??.??", [
TableName.MembershipRole,
"projectMembershipId",
TableName.Membership,
"id"
])
.whereRaw("??.?? = ??.??", [TableName.MembershipRole, "membershipId", TableName.Membership, "id"])
.where((subQb) => {
void subQb
.whereIn(`${TableName.MembershipRole}.role`, filter.roles as string[])