Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

make audit log await and remove empty catch block

Matheus Nogueira0a54b09f1b03
diff --git a/backend/src/ee/services/honey-token/honey-token-service.ts b/backend/src/ee/services/honey-token/honey-token-service.ts
index c2e545cc0e..0748ef65dd 100644
--- a/backend/src/ee/services/honey-token/honey-token-service.ts
+++ b/backend/src/ee/services/honey-token/honey-token-service.ts
@@ -1029,7 +1029,7 @@ export const honeyTokenServiceFactory = ({
if (updatedToken) {
void $sendTriggerNotification({ orgId: honeyTokenWithOrg.orgId, honeyToken, eventMetadata });
- void auditLogService
+ await auditLogService
.createAuditLog({
actor: {
type: ActorType.UNKNOWN_USER,
@@ -1051,7 +1051,6 @@ export const honeyTokenServiceFactory = ({
}
}
})
- .catch(() => {});
}
return { acknowledged: true };