Skip to content

Instantly share code, notes, and snippets.

@smokeyfro
Created April 3, 2020 07:22
Show Gist options
  • Save smokeyfro/f7650274174c49d94b31c7af8257ea3a to your computer and use it in GitHub Desktop.
Save smokeyfro/f7650274174c49d94b31c7af8257ea3a to your computer and use it in GitHub Desktop.
'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/3.0.0-beta.x/concepts/configurations.html#cron-tasks
*/
module.exports = {
'0 2 * * *': () => {
strapi.config.functions.getbooks();
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment