From 5b0b403dbb01bebe1177714f576f1527a85ec6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 12 May 2022 02:15:06 +0400 Subject: [PATCH] Add cron-task --- config/cron-task.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/cron-task.js diff --git a/config/cron-task.js b/config/cron-task.js new file mode 100644 index 0000000..97d5441 --- /dev/null +++ b/config/cron-task.js @@ -0,0 +1,9 @@ +module.exports = { + myJob: { + task: ({ strapi }) => {console.log('TODO > save db')}, + options: { + rule: '0 0 * * SUN', + tz: 'Indian/Reunion', + }, + }, +};