mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Partial deploy with missing type breaks flow diff
Another refactor of Flow lifecycle. - diffFlow made a private static function - applyConfig now diffConfig - which returns a diff object that can be passed to .stop/.start to be properly applied
This commit is contained in:
@@ -123,7 +123,7 @@ var flowNodes = module.exports = {
|
||||
return credentialSavePromise
|
||||
.then(function() { return storage.saveFlows(cleanConfig);})
|
||||
.then(function() {
|
||||
var configDiff = activeFlow.applyConfig(config,type);
|
||||
var configDiff = activeFlow.diffConfig(config,type);
|
||||
return flowNodes.stopFlows(configDiff).then(function() {
|
||||
activeFlow.parseConfig(config);
|
||||
flowNodes.startFlows(configDiff);
|
||||
|
Reference in New Issue
Block a user