Created
April 3, 2020 07:22
-
-
Save smokeyfro/f7650274174c49d94b31c7af8257ea3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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