Skip to content

Commit

Permalink
feat(scripts): adjust cron ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Jun 26, 2020
1 parent e58023c commit 9d69274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/crons/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const cronJobs = async () => {

_.forEach(apis, (_api) => {
if (cron.validate(_api.cron)) {
console.log(chalk.blue(`- Init ${_api.title} (${_api.id}) : ${_api.cron}`));
console.log(chalk.cyan(`- Init ${_api.title} (${_api.id}) : ${_api.cron}`));
cron.schedule(_api.cron, async () => {
console.log(chalk.blue(`- Running ${_api.title} (${_api.id}) : ${_api.cron}`));
console.log(chalk.yellow(`- Running ${_api.title} (${_api.id}) : ${_api.cron}`));
const api = await ApiService.get(_api.id);
await ApiService.load(api, 'cron');
});
Expand Down

0 comments on commit 9d69274

Please sign in to comment.