mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
🐛 Block long interval amounts for Interval node #2007
This commit is contained in:
parent
cf2c94e2d8
commit
9682059cc2
|
@ -80,7 +80,8 @@ export class Interval implements INodeType {
|
|||
|
||||
intervalValue *= 1000;
|
||||
|
||||
if (intervalValue > Number.MAX_SAFE_INTEGER) {
|
||||
// Reference: https://nodejs.org/api/timers.html#timers_setinterval_callback_delay_args
|
||||
if (intervalValue > 2147483647) {
|
||||
throw new Error('The interval value is too large.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue