mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-19 22:37:31 -07:00
test update, unsafe access fix
This commit is contained in:
parent
57231cb157
commit
9a2f9cee62
|
@ -63,7 +63,7 @@ describe('WaitingWebhooks', () => {
|
||||||
* Arrange
|
* Arrange
|
||||||
*/
|
*/
|
||||||
executionRepository.findSingleExecution.mockResolvedValue(
|
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.`);
|
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.`);
|
throw new ConflictError(`The execution "${executionId} has finished already.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue