fix: Store workflow settings when saving an execution (#8288)

This commit is contained in:
Omar Ajoue
2024-01-10 14:20:37 +00:00
committed by GitHub
parent 3b01eb60c9
commit 8a7c629ea1
2 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ describe('ExecutionRepository', () => {
describe('createNewExecution', () => {
it('should save execution data', async () => {
const executionRepo = Container.get(ExecutionRepository);
const workflow = await createWorkflow();
const workflow = await createWorkflow({ settings: { executionOrder: 'v1' } });
const executionId = await executionRepo.createNewExecution({
workflowId: workflow.id,
data: {
@@ -48,6 +48,7 @@ describe('ExecutionRepository', () => {
connections: workflow.connections,
nodes: workflow.nodes,
name: workflow.name,
settings: workflow.settings,
});
expect(executionData?.data).toEqual('[{"resultData":"1"},{}]');
});