mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 04:33:01 +00:00
feat: go greppy
This commit is contained in:
@@ -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[])
|
||||
|
||||
Reference in New Issue
Block a user