refactor(core): Make execution status non-nullable (no-changelog) (#9483)

This commit is contained in:
Iván Ovejero
2024-05-22 16:56:05 +02:00
committed by GitHub
parent 1cb6c12b4f
commit bc219e0499
7 changed files with 32 additions and 2 deletions

View File

@@ -161,6 +161,7 @@ test('should report credential in not recently executed workflow', async () => {
stoppedAt: date,
workflowId: workflow.id,
waitTill: null,
status: 'success',
});
await Container.get(ExecutionDataRepository).save({
execution: savedExecution,
@@ -228,6 +229,7 @@ test('should not report credentials in recently executed workflow', async () =>
stoppedAt: date,
workflowId: workflow.id,
waitTill: null,
status: 'success',
});
await Container.get(ExecutionDataRepository).save({

View File

@@ -30,7 +30,7 @@ export async function createExecution(
...(workflow !== undefined && { workflowId: workflow.id }),
stoppedAt: stoppedAt ?? new Date(),
waitTill: waitTill ?? null,
status,
status: status ?? 'success',
deletedAt,
});