mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix issue with very large interval values
This commit is contained in:
parent
597305945f
commit
7c94ee3cce
|
@ -78,7 +78,13 @@ export class Interval implements INodeType {
|
|||
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() {
|
||||
clearInterval(intervalObj);
|
||||
|
|
Loading…
Reference in a new issue