@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.mjs
CHANGED
|
@@ -7748,7 +7748,12 @@ const reviewWorkflowsWeeklyMetrics = ({ strapi: strapi2 }) => {
|
|
|
7748
7748
|
},
|
|
7749
7749
|
async registerCron() {
|
|
7750
7750
|
const weeklySchedule = await this.ensureWeeklyStoredCronSchedule();
|
|
7751
|
-
strapi2.cron.add({
|
|
7751
|
+
strapi2.cron.add({
|
|
7752
|
+
reviewWorkflowsWeekly: {
|
|
7753
|
+
task: this.sendMetrics.bind(this),
|
|
7754
|
+
options: weeklySchedule
|
|
7755
|
+
}
|
|
7756
|
+
});
|
|
7752
7757
|
}
|
|
7753
7758
|
};
|
|
7754
7759
|
};
|