mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Make execution status non-nullable (no-changelog) (#9483)
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user