mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 02:26:26 +00:00
Small formatting fixes
This commit is contained in:
@@ -161,7 +161,6 @@ 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;
|
||||||
@@ -196,7 +195,6 @@ 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,
|
||||||
{
|
{
|
||||||
@@ -247,7 +245,6 @@ 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user