Skip to content

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

fix(project-cleanup): include orgId in audit log for project cleanup actions

Victor Hugo dos Santos4be387c94760
diff --git a/backend/src/services/project/project-cleanup-queue.ts b/backend/src/services/project/project-cleanup-queue.ts
index c2fade5155..af1733566e 100644
--- a/backend/src/services/project/project-cleanup-queue.ts
+++ b/backend/src/services/project/project-cleanup-queue.ts
@@ -186,6 +186,7 @@ export const projectCleanupQueueFactory = ({
await keyStore.deleteItem(KeyStorePrefixes.LicenseCloudPlan(project.orgId));
await auditLogService.createAuditLog({
+ orgId: project.orgId,
projectId,
actor: { type: ActorType.PLATFORM, metadata: {} },
event: {