Skip to content

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

fix: adding slug to auditlogs

IgorHortada162c80f2d0
diff --git a/backend/src/ee/routes/v1/sub-org-router.ts b/backend/src/ee/routes/v1/sub-org-router.ts
index 47cbc4ca16..bef2bd3566 100644
--- a/backend/src/ee/routes/v1/sub-org-router.ts
+++ b/backend/src/ee/routes/v1/sub-org-router.ts
@@ -58,6 +58,7 @@ export const registerSubOrgRouter = async (server: FastifyZodProvider) => {
type: EventType.CREATE_SUB_ORGANIZATION,
metadata: {
name: organization.name,
+ slug: organization.slug,
organizationId: organization.id
}
}
@@ -156,6 +157,7 @@ export const registerSubOrgRouter = async (server: FastifyZodProvider) => {
type: EventType.UPDATE_SUB_ORGANIZATION,
metadata: {
name: organization.name,
+ slug: organization.slug,
organizationId: organization.id
}
}
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 9faf96b32f..0916c58936 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -765,6 +765,7 @@ interface CreateSubOrganizationEvent {
type: EventType.CREATE_SUB_ORGANIZATION;
metadata: {
name: string;
+ slug: string;
organizationId: string;
};
}
@@ -773,6 +774,7 @@ interface UpdateSubOrganizationEvent {
type: EventType.UPDATE_SUB_ORGANIZATION;
metadata: {
name: string;
+ slug: string;
organizationId: string;
};
}