mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
🐛 Block long interval amounts for Interval node #2007
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user