🚀 added-everyminute-option

This commit is contained in:
Ricardo Espinoza 2019-11-12 09:09:42 -05:00
parent 883d0936cb
commit 7cc8002ea3

View file

@ -69,6 +69,10 @@ export class Cron implements INodeType {
name: 'Every Month', name: 'Every Month',
value: 'everyMonth' value: 'everyMonth'
}, },
{
name: 'Every Minute',
value: 'everyMinute'
},
{ {
name: 'Custom', name: 'Custom',
value: 'custom' value: 'custom'
@ -90,6 +94,7 @@ export class Cron implements INodeType {
mode: [ mode: [
'custom', 'custom',
'everyHour', 'everyHour',
'everyMinute'
], ],
}, },
}, },
@ -108,6 +113,7 @@ export class Cron implements INodeType {
hide: { hide: {
mode: [ mode: [
'custom', 'custom',
'everyMinute'
], ],
}, },
}, },
@ -226,6 +232,10 @@ export class Cron implements INodeType {
cronTimes.push(item.cronExpression as string); cronTimes.push(item.cronExpression as string);
continue; continue;
} }
if (item.mode === 'everyMinute') {
cronTimes.push('* * * * *');
continue;
}
for (parameterName of parameterOrder) { for (parameterName of parameterOrder) {
if (item[parameterName] !== undefined) { if (item[parameterName] !== undefined) {