Add cron-task
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
module.exports = {
|
||||||
|
myJob: {
|
||||||
|
task: ({ strapi }) => {console.log('TODO > save db')},
|
||||||
|
options: {
|
||||||
|
rule: '0 0 * * SUN',
|
||||||
|
tz: 'Indian/Reunion',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user