mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
fix(api): fix an issue with unsupported cron format (#3240)
* fix(api): fix an issue with unsupported cron format * refactor(api): review migration method
This commit is contained in:
parent
d717ad947b
commit
182f3734d0
5 changed files with 56 additions and 7 deletions
|
@ -10,15 +10,15 @@ angular.module('portainer.app').component('scheduleForm', {
|
|||
};
|
||||
|
||||
ctrl.scheduleValues = [{
|
||||
displayed: 'Every hour',
|
||||
cron: '0 0 * * *'
|
||||
},
|
||||
displayed: 'Every hour',
|
||||
cron: '0 * * * *'
|
||||
},
|
||||
{
|
||||
displayed: 'Every 2 hours',
|
||||
cron: '0 0 0/2 * *'
|
||||
cron: '0 */2 * * *'
|
||||
}, {
|
||||
displayed: 'Every day',
|
||||
cron: '0 0 0 * *'
|
||||
cron: '0 0 * * *'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue