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

@@ -62,6 +62,7 @@ import type { WorkflowEntity } from '@db/entities/WorkflowEntity';
import { EventsService } from '@/services/events.service';
import { OwnershipService } from './services/ownership.service';
import { parseBody } from './middlewares';
import { WorkflowsService } from './workflows/workflows.services';
const pipeline = promisify(stream.pipeline);
@@ -359,7 +360,7 @@ export async function executeWebhook(
}
// Save static data if it changed
await WorkflowHelpers.saveStaticData(workflow);
await WorkflowsService.saveStaticData(workflow);
const additionalKeys: IWorkflowDataProxyAdditionalKeys = {
$executionId: executionId,