Formattting fix

This commit is contained in:
Daniel Inge
2023-08-16 17:42:39 -04:00
parent 0073fe459e
commit c0ce92cf3d
@@ -161,6 +161,7 @@ export const renameWorkspaceEnvironment = async (
if (envIndex === -1) { if (envIndex === -1) {
throw new Error("Invalid environment given"); throw new Error("Invalid environment given");
} }
const oldEnvironment = workspace.environments[envIndex]; const oldEnvironment = workspace.environments[envIndex];
workspace.environments[envIndex].name = environmentName; workspace.environments[envIndex].name = environmentName;
@@ -195,6 +196,7 @@ export const renameWorkspaceEnvironment = async (
{ $set: { "deniedPermissions.$[element].environmentSlug": environmentSlug } }, { $set: { "deniedPermissions.$[element].environmentSlug": environmentSlug } },
{ arrayFilters: [{ "element.environmentSlug": oldEnvironmentSlug }] } { arrayFilters: [{ "element.environmentSlug": oldEnvironmentSlug }] }
); );
await EEAuditLogService.createAuditLog( await EEAuditLogService.createAuditLog(
req.authData, req.authData,
{ {
@@ -245,6 +247,7 @@ export const deleteWorkspaceEnvironment = async (
if (envIndex === -1) { if (envIndex === -1) {
throw new Error("Invalid environment given"); throw new Error("Invalid environment given");
} }
const oldEnvironment = workspace.environments[envIndex]; const oldEnvironment = workspace.environments[envIndex];
workspace.environments.splice(envIndex, 1); workspace.environments.splice(envIndex, 1);