🐛 Fix Interval Trigger (#2043)

Fixed infinite amount of interval triggered nodes executions
This commit is contained in:
Лебедев Иван 2021-08-03 00:37:20 +04:00 committed by GitHub
parent 8f07bcee03
commit 4e2ea397d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ export class Interval implements INodeType {
throw new Error('The interval value is too large.'); throw new Error('The interval value is too large.');
} }
const intervalObj = setInterval(executeTrigger, ); const intervalObj = setInterval(executeTrigger, intervalValue);
async function closeFunction() { async function closeFunction() {
clearInterval(intervalObj); clearInterval(intervalObj);