🎨 Rename setting "saveManualRuns" to "saveManualExecutions"

This commit is contained in:
Jan Oberhauser
2019-07-10 18:06:26 +02:00
parent a56f477833
commit e00bc83f1b
8 changed files with 28 additions and 28 deletions

View File

@@ -120,13 +120,13 @@ const hooks = (mode: WorkflowExecuteMode, workflowData: IWorkflowBase, workflowI
const workflowSavePromise = WorkflowHelpers.saveStaticData(workflowInstance);
let saveManualRuns = config.get('executions.saveManualRuns') as boolean;
if (workflowInstance.settings !== undefined && workflowInstance.settings.saveManualRuns !== undefined) {
let saveManualExecutions = config.get('executions.saveManualExecutions') as boolean;
if (workflowInstance.settings !== undefined && workflowInstance.settings.saveManualExecutions !== undefined) {
// Apply to workflow override
saveManualRuns = workflowInstance.settings.saveManualRuns as boolean;
saveManualExecutions = workflowInstance.settings.saveManualExecutions as boolean;
}
if (mode === 'manual' && saveManualRuns === false) {
if (mode === 'manual' && saveManualExecutions === false) {
if (workflowSavePromise !== undefined) {
// If workflow had to be saved wait till it is done
await workflowSavePromise;