@strapi/review-workflows 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server/index.js
CHANGED
|
@@ -7749,7 +7749,12 @@ const reviewWorkflowsWeeklyMetrics = ({ strapi: strapi2 }) => {
|
|
|
7749
7749
|
},
|
|
7750
7750
|
async registerCron() {
|
|
7751
7751
|
const weeklySchedule = await this.ensureWeeklyStoredCronSchedule();
|
|
7752
|
-
strapi2.cron.add({
|
|
7752
|
+
strapi2.cron.add({
|
|
7753
|
+
reviewWorkflowsWeekly: {
|
|
7754
|
+
task: this.sendMetrics.bind(this),
|
|
7755
|
+
options: weeklySchedule
|
|
7756
|
+
}
|
|
7757
|
+
});
|
|
7753
7758
|
}
|
|
7754
7759
|
};
|
|
7755
7760
|
};
|