diff --git a/src/functions/helperFunctions.js b/src/functions/helperFunctions.js index 9c5d24c086f5da8e43a4189b1c0da8c127b42f6f..61ef2e3383f60977d6ed88e708142df0ba81b293 100644 --- a/src/functions/helperFunctions.js +++ b/src/functions/helperFunctions.js @@ -62,6 +62,7 @@ const addCustomCodeToJson = async (newElement) => { await removeDockerImage(newElement.id); existingFilter.code = newElement.code; existingFilter.isDeployed = false; + existingFilter.isPaused = false; } else if (existingFilter && !existingFilter.isDeployed) { existingFilter.code = newElement.code; } else { @@ -214,7 +215,7 @@ const scaleOut = async (id) => { JSON.stringify(customCodes, null, 2), "utf8" ); - restartArchitecture(); + await restartArchitecture(); } catch (err) { console.error(err); throw err;