fix(cli): Fix issue with n8n crashing when error in poll method (#4008)

* 🐛 Fix issue with n8n crashing when error in poll method

* Remove unnecessary imports and add async property

* Remove unnecessary imports

*  Move createErrorExecution to genericHelper

*  Improvements

Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
Ricardo Espinoza
2022-09-15 16:16:54 -04:00
committed by GitHub
parent 07672cce7d
commit 6c41b29ad2
4 changed files with 126 additions and 11 deletions

View File

@@ -715,7 +715,7 @@ export interface IHookFunctions {
}
export interface IPollFunctions {
__emit(data: INodeExecutionData[][]): void;
__emit(data: INodeExecutionData[][] | NodeApiError): void;
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
getMode(): WorkflowExecuteMode;
getActivationMode(): WorkflowActivateMode;