mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: make IPollFunctions emit consistent with trigger emit (#4201)
* refactor: make IPollFunctions emit consistent with trigger emit * refactor: re-add underscores to poll emits * chore: update emit override message
This commit is contained in:
@@ -1874,7 +1874,12 @@ export function getExecutePollFunctions(
|
||||
return ((workflow: Workflow, node: INode) => {
|
||||
return {
|
||||
__emit: (data: INodeExecutionData[][]): void => {
|
||||
throw new Error('Overwrite NodeExecuteFunctions.getExecutePullFunctions.__emit function!');
|
||||
throw new Error('Overwrite NodeExecuteFunctions.getExecutePollFunctions.__emit function!');
|
||||
},
|
||||
__emitError(error: Error) {
|
||||
throw new Error(
|
||||
'Overwrite NodeExecuteFunctions.getExecutePollFunctions.__emitError function!',
|
||||
);
|
||||
},
|
||||
async getCredentials(type: string): Promise<ICredentialDataDecryptedObject> {
|
||||
return getCredentials(workflow, node, type, additionalData, mode);
|
||||
|
||||
Reference in New Issue
Block a user