Skip to content

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

Formattting fix

Daniel Ingec0ce92cf3d18
diff --git a/backend/src/controllers/v2/environmentController.ts b/backend/src/controllers/v2/environmentController.ts
index dcc14a64aa..5eb923e7b1 100644
--- a/backend/src/controllers/v2/environmentController.ts
+++ b/backend/src/controllers/v2/environmentController.ts
@@ -161,6 +161,7 @@ export const renameWorkspaceEnvironment = async (
if (envIndex === -1) {
throw new Error("Invalid environment given");
}
+
const oldEnvironment = workspace.environments[envIndex];
workspace.environments[envIndex].name = environmentName;
@@ -195,6 +196,7 @@ export const renameWorkspaceEnvironment = async (
{ $set: { "deniedPermissions.$[element].environmentSlug": environmentSlug } },
{ arrayFilters: [{ "element.environmentSlug": oldEnvironmentSlug }] }
);
+
await EEAuditLogService.createAuditLog(
req.authData,
{
@@ -245,6 +247,7 @@ export const deleteWorkspaceEnvironment = async (
if (envIndex === -1) {
throw new Error("Invalid environment given");
}
+
const oldEnvironment = workspace.environments[envIndex];
workspace.environments.splice(envIndex, 1);