Created
April 2, 2020 12:11
-
-
Save smokeyfro/e5ee7b5b5e3405d79fcd63df49e34b5f 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