feat: resolved list failing

This commit is contained in:
=
2025-10-08 01:01:41 +05:30
parent f9472d753d
commit 0f0c107669

View File

@@ -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
}, },