fix(api): resolved identity name missing in audit log

This commit is contained in:
=
2025-12-04 01:04:12 +05:30
parent aa9c125124
commit 41aa7f85f5
2 changed files with 2 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ export const injectIdentity = fp(
rootOrgId: identity.rootOrgId,
parentOrgId: identity.parentOrgId,
identityId: identity.identityId,
identityName: identity.name,
identityName: identity.identityName,
authMethod: null,
isInstanceAdmin: serverCfg?.adminIdentityIds?.includes(identity.identityId),
token

View File

@@ -19,6 +19,7 @@ export const identityAccessTokenDALFactory = (db: TDbClient) => {
.join(TableName.Identity, `${TableName.Identity}.id`, `${TableName.IdentityAccessToken}.identityId`)
.select(selectAllTableCols(TableName.IdentityAccessToken))
.select(db.ref("orgId").withSchema(TableName.Identity).as("identityScopeOrgId"))
.select(db.ref("name").withSchema(TableName.Identity).as("identityName"))
.first();
return doc;