@strapi/review-workflows 0.0.0-next.504076d2165a82f124620a3f1f3e3a6017e97f3f → 0.0.0-next.62c4d48d34e826c6c9f6fbe5cf6e858546239e40
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/_chunks/{Layout-BJOxxAeM.mjs → Layout-C_uZ98Uf.mjs} +2 -2
- package/dist/_chunks/{Layout-BJOxxAeM.mjs.map → Layout-C_uZ98Uf.mjs.map} +1 -1
- package/dist/_chunks/{Layout-DnEAvmeU.js → Layout-b_msoxIP.js} +2 -2
- package/dist/_chunks/{Layout-DnEAvmeU.js.map → Layout-b_msoxIP.js.map} +1 -1
- package/dist/_chunks/{_id-DSDzUpwX.js → _id-4xBYY7wK.js} +3 -4
- package/dist/_chunks/{_id-DSDzUpwX.js.map → _id-4xBYY7wK.js.map} +1 -1
- package/dist/_chunks/{_id-6LK95-rZ.mjs → _id-mkPbu6GX.mjs} +3 -4
- package/dist/_chunks/{_id-6LK95-rZ.mjs.map → _id-mkPbu6GX.mjs.map} +1 -1
- package/dist/_chunks/{index-DZSLya4b.js → index-C5NgBQMb.js} +2 -5
- package/dist/_chunks/{index-DZSLya4b.js.map → index-C5NgBQMb.js.map} +1 -1
- package/dist/_chunks/{index-6FZL88pd.js → index-CIGzoVfk.js} +3 -3
- package/dist/_chunks/{index-6FZL88pd.js.map → index-CIGzoVfk.js.map} +1 -1
- package/dist/_chunks/{index-lJqpw8bs.mjs → index-DL8-Q4Q5.mjs} +2 -5
- package/dist/_chunks/{index-lJqpw8bs.mjs.map → index-DL8-Q4Q5.mjs.map} +1 -1
- package/dist/_chunks/{index-Df1alkCk.mjs → index-D_k4wfAN.mjs} +3 -3
- package/dist/_chunks/{index-Df1alkCk.mjs.map → index-D_k4wfAN.mjs.map} +1 -1
- package/dist/_chunks/{router-CZqe-02r.js → router-BFr5lHsE.js} +3 -3
- package/dist/_chunks/{router-CZqe-02r.js.map → router-BFr5lHsE.js.map} +1 -1
- package/dist/_chunks/{router-DeSH-NeW.mjs → router-DnQKLQOJ.mjs} +3 -3
- package/dist/_chunks/{router-DeSH-NeW.mjs.map → router-DnQKLQOJ.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +12 -7
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +12 -7
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/server/index.mjs
CHANGED
|
@@ -7607,13 +7607,13 @@ const reviewWorkflowsMetrics = {
|
|
|
7607
7607
|
sendDidSendReviewWorkflowPropertiesOnceAWeek,
|
|
7608
7608
|
sendDidEditAssignee
|
|
7609
7609
|
};
|
|
7610
|
-
function _typeof(
|
|
7610
|
+
function _typeof(o) {
|
|
7611
7611
|
"@babel/helpers - typeof";
|
|
7612
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(
|
|
7613
|
-
return typeof
|
|
7614
|
-
} : function(
|
|
7615
|
-
return
|
|
7616
|
-
}, _typeof(
|
|
7612
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
7613
|
+
return typeof o2;
|
|
7614
|
+
} : function(o2) {
|
|
7615
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
7616
|
+
}, _typeof(o);
|
|
7617
7617
|
}
|
|
7618
7618
|
function toInteger(dirtyNumber) {
|
|
7619
7619
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -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
|
};
|