🐛 Block long interval amounts for Interval node #2007

This commit is contained in:
Jan Oberhauser 2021-08-22 10:51:32 +02:00
parent cf2c94e2d8
commit 9682059cc2

View file

@ -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.');
}