refactor(core): Move static data handling to workflow service (no-changelog) (#7104)

This commit is contained in:
Iván Ovejero
2023-09-05 13:42:31 +02:00
committed by GitHub
parent 011ee2e04b
commit 0036a4726c
5 changed files with 53 additions and 52 deletions

View File

@@ -530,7 +530,7 @@ function hookFunctionsSave(parentProcessMode?: string): IWorkflowExecuteHooks {
if (!isManualMode && isWorkflowIdValid(this.workflowData.id) && newStaticData) {
// Workflow is saved so update in database
try {
await WorkflowHelpers.saveStaticDataById(
await WorkflowsService.saveStaticDataById(
this.workflowData.id as string,
newStaticData,
);
@@ -722,7 +722,7 @@ function hookFunctionsSaveWorker(): IWorkflowExecuteHooks {
if (isWorkflowIdValid(this.workflowData.id) && newStaticData) {
// Workflow is saved so update in database
try {
await WorkflowHelpers.saveStaticDataById(
await WorkflowsService.saveStaticDataById(
this.workflowData.id as string,
newStaticData,
);