mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
🐛 Fix issue with very large interval values
This commit is contained in:
@@ -78,7 +78,13 @@ export class Interval implements INodeType {
|
|||||||
this.emit([this.helpers.returnJsonArray([{}])]);
|
this.emit([this.helpers.returnJsonArray([{}])]);
|
||||||
};
|
};
|
||||||
|
|
||||||
const intervalObj = setInterval(executeTrigger, intervalValue * 1000);
|
intervalValue *= 1000;
|
||||||
|
|
||||||
|
if (intervalValue > Number.MAX_SAFE_INTEGER) {
|
||||||
|
throw new Error('The interval value is too large.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const intervalObj = setInterval(executeTrigger, );
|
||||||
|
|
||||||
async function closeFunction() {
|
async function closeFunction() {
|
||||||
clearInterval(intervalObj);
|
clearInterval(intervalObj);
|
||||||
|
|||||||
Reference in New Issue
Block a user