1
0
Fork 0
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:
Anthony Lapenna 2019-10-08 16:18:32 +13:00 committed by GitHub
parent d717ad947b
commit 182f3734d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 7 deletions

View file

@ -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 * * *'
}
];