mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
test update, unsafe access fix
This commit is contained in:
parent
57231cb157
commit
9a2f9cee62
|
@ -63,7 +63,7 @@ describe('WaitingWebhooks', () => {
|
|||
* Arrange
|
||||
*/
|
||||
executionRepository.findSingleExecution.mockResolvedValue(
|
||||
mock<IExecutionResponse>({ finished: true }),
|
||||
mock<IExecutionResponse>({ finished: true, workflowData: { nodes: [] } }),
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -88,7 +88,7 @@ export class WaitingWebhooks implements IWebhookManager {
|
|||
throw new ConflictError(`The execution "${executionId} is running already.`);
|
||||
}
|
||||
|
||||
if (execution.data.resultData.error) {
|
||||
if (execution.data?.resultData?.error) {
|
||||
throw new ConflictError(`The execution "${executionId} has finished already.`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue