mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix(api): resolved identity name missing in audit log
This commit is contained in:
@@ -195,7 +195,7 @@ export const injectIdentity = fp(
|
|||||||
rootOrgId: identity.rootOrgId,
|
rootOrgId: identity.rootOrgId,
|
||||||
parentOrgId: identity.parentOrgId,
|
parentOrgId: identity.parentOrgId,
|
||||||
identityId: identity.identityId,
|
identityId: identity.identityId,
|
||||||
identityName: identity.name,
|
identityName: identity.identityName,
|
||||||
authMethod: null,
|
authMethod: null,
|
||||||
isInstanceAdmin: serverCfg?.adminIdentityIds?.includes(identity.identityId),
|
isInstanceAdmin: serverCfg?.adminIdentityIds?.includes(identity.identityId),
|
||||||
token
|
token
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export const identityAccessTokenDALFactory = (db: TDbClient) => {
|
|||||||
.join(TableName.Identity, `${TableName.Identity}.id`, `${TableName.IdentityAccessToken}.identityId`)
|
.join(TableName.Identity, `${TableName.Identity}.id`, `${TableName.IdentityAccessToken}.identityId`)
|
||||||
.select(selectAllTableCols(TableName.IdentityAccessToken))
|
.select(selectAllTableCols(TableName.IdentityAccessToken))
|
||||||
.select(db.ref("orgId").withSchema(TableName.Identity).as("identityScopeOrgId"))
|
.select(db.ref("orgId").withSchema(TableName.Identity).as("identityScopeOrgId"))
|
||||||
|
.select(db.ref("name").withSchema(TableName.Identity).as("identityName"))
|
||||||
.first();
|
.first();
|
||||||
|
|
||||||
return doc;
|
return doc;
|
||||||
|
|||||||
Reference in New Issue
Block a user