🐛 Fix that static data did not always get load on execution

This commit is contained in:
Jan Oberhauser
2019-10-15 07:36:53 +02:00
parent 369e8084d3
commit 542ae1e785
5 changed files with 32 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ const hooks = (mode: WorkflowExecuteMode, workflowData: IWorkflowBase, execution
workflowExecuteAfter: [
async (fullRunData: IRun, newStaticData: IDataObject): Promise<void> => {
try {
if (WorkflowHelpers.isWorkflowIdValid(workflowData.id as string) === true) {
if (mode !== 'manual' && WorkflowHelpers.isWorkflowIdValid(workflowData.id as string) === true) {
// Workflow is saved so update in database
try {
await WorkflowHelpers.saveStaticDataById(workflowData.id as string, newStaticData);