final small fixes

This commit is contained in:
x032205
2025-10-20 21:24:57 -04:00
parent efd63dcb35
commit 35d4720d86
4 changed files with 25 additions and 18 deletions
@@ -611,6 +611,8 @@ export const pamAccountServiceFactory = ({
}
});
} catch (error) {
logger.error(error, `Failed to rotate credentials for account [accountId=${account.id}]`);
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred";
await auditLogService.createAuditLog({
@@ -630,8 +632,6 @@ export const pamAccountServiceFactory = ({
}
}
});
logger.error(error, `Failed to rotate credentials for account ${account.id}`);
}
});