diff --git a/api/config/functions/cron.ts b/api/config/functions/cron.ts new file mode 100644 index 0000000..d126df4 --- /dev/null +++ b/api/config/functions/cron.ts @@ -0,0 +1,7 @@ +'use strict'; + +module.exports = { + // At H:30 every 12 hours + // '30 */12 * * *': generateStats + // '* * * * *': generateStats +}; diff --git a/config/functions/cron.js b/config/functions/cron.js deleted file mode 100644 index 8aa2edd..0000000 --- a/config/functions/cron.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -/** - * Cron config that gives you an opportunity - * to run scheduled jobs. - * - * The cron format consists of: - * [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK] - * - * See more details here: https://strapi.io/documentation/v3.x/concepts/configurations.html#cron-tasks - */ - -module.exports = { - /** - * Simple example. - * Every monday at 1am. - */ - // '0 1 * * 1': () => { - // - // } -};