mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🔀 Merge branch 'RicardoE105-feature/cronnode-every-minute'
This commit is contained in:
commit
4ab9e1cf28
|
@ -53,6 +53,10 @@ export class Cron implements INodeType {
|
|||
name: 'mode',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Every Minute',
|
||||
value: 'everyMinute'
|
||||
},
|
||||
{
|
||||
name: 'Every Hour',
|
||||
value: 'everyHour'
|
||||
|
@ -90,6 +94,7 @@ export class Cron implements INodeType {
|
|||
mode: [
|
||||
'custom',
|
||||
'everyHour',
|
||||
'everyMinute'
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -108,6 +113,7 @@ export class Cron implements INodeType {
|
|||
hide: {
|
||||
mode: [
|
||||
'custom',
|
||||
'everyMinute'
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -226,6 +232,10 @@ export class Cron implements INodeType {
|
|||
cronTimes.push(item.cronExpression as string);
|
||||
continue;
|
||||
}
|
||||
if (item.mode === 'everyMinute') {
|
||||
cronTimes.push(`${Math.floor(Math.random() * 60).toString()} * * * * *`);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (parameterName of parameterOrder) {
|
||||
if (item[parameterName] !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue