mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: resolved list failing
This commit is contained in:
@@ -56,11 +56,6 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.join<TUserEncryptionKeys>(
|
|
||||||
TableName.UserEncryptionKey,
|
|
||||||
`${TableName.UserEncryptionKey}.userId`,
|
|
||||||
`${TableName.Users}.id`
|
|
||||||
)
|
|
||||||
.join(TableName.MembershipRole, `${TableName.MembershipRole}.membershipId`, `${TableName.Membership}.id`)
|
.join(TableName.MembershipRole, `${TableName.MembershipRole}.membershipId`, `${TableName.Membership}.id`)
|
||||||
.leftJoin(TableName.Role, `${TableName.MembershipRole}.customRoleId`, `${TableName.Role}.id`)
|
.leftJoin(TableName.Role, `${TableName.MembershipRole}.customRoleId`, `${TableName.Role}.id`)
|
||||||
.select(
|
.select(
|
||||||
@@ -69,7 +64,6 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
|
|||||||
db.ref("isGhost").withSchema(TableName.Users),
|
db.ref("isGhost").withSchema(TableName.Users),
|
||||||
db.ref("username").withSchema(TableName.Users),
|
db.ref("username").withSchema(TableName.Users),
|
||||||
db.ref("email").withSchema(TableName.Users),
|
db.ref("email").withSchema(TableName.Users),
|
||||||
db.ref("publicKey").withSchema(TableName.UserEncryptionKey),
|
|
||||||
db.ref("firstName").withSchema(TableName.Users),
|
db.ref("firstName").withSchema(TableName.Users),
|
||||||
db.ref("lastName").withSchema(TableName.Users),
|
db.ref("lastName").withSchema(TableName.Users),
|
||||||
db.ref("id").withSchema(TableName.Users).as("userId"),
|
db.ref("id").withSchema(TableName.Users).as("userId"),
|
||||||
@@ -96,7 +90,6 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
|
|||||||
firstName,
|
firstName,
|
||||||
username,
|
username,
|
||||||
lastName,
|
lastName,
|
||||||
publicKey,
|
|
||||||
isGhost,
|
isGhost,
|
||||||
id,
|
id,
|
||||||
userId,
|
userId,
|
||||||
@@ -113,7 +106,7 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
|
|||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
id: userId,
|
id: userId,
|
||||||
publicKey,
|
publicKey: "",
|
||||||
isGhost,
|
isGhost,
|
||||||
isOrgMembershipActive: isActive
|
isOrgMembershipActive: isActive
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user