mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +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:
@@ -160,7 +160,6 @@ export class ActiveWorkflows {
|
||||
const pollResponse = await workflow.runPoll(node, pollFunctions);
|
||||
|
||||
if (pollResponse !== null) {
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
pollFunctions.__emit(pollResponse);
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -170,8 +169,7 @@ export class ActiveWorkflows {
|
||||
if (testingTrigger) {
|
||||
throw error;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-underscore-dangle
|
||||
pollFunctions.__emit(error);
|
||||
pollFunctions.__emitError(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user