mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add condition to query to only retrieve the actual project id
This commit is contained in:
@@ -136,6 +136,8 @@ export const secretVersionV2BridgeDALFactory = (db: TDbClient) => {
|
||||
`${TableName.SecretVersionV2}.userActorId`
|
||||
)
|
||||
.leftJoin(TableName.Identity, `${TableName.Identity}.id`, `${TableName.SecretVersionV2}.identityActorId`)
|
||||
.where(`${TableName.ProjectMembership}.projectId`, projectId)
|
||||
.orWhereNull(`${TableName.ProjectMembership}.projectId`)
|
||||
.select(
|
||||
selectAllTableCols(TableName.SecretVersionV2),
|
||||
`${TableName.Users}.username as userActorName`,
|
||||
|
||||
Reference in New Issue
Block a user