@strapi/review-workflows 0.0.0-next.504076d2165a82f124620a3f1f3e3a6017e97f3f → 0.0.0-next.64bd4f3d1efcc9420d27c4f4d2013677ded62360

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.
Files changed (28) hide show
  1. package/dist/_chunks/{Layout-BJOxxAeM.mjs → Layout-C_uZ98Uf.mjs} +2 -2
  2. package/dist/_chunks/{Layout-BJOxxAeM.mjs.map → Layout-C_uZ98Uf.mjs.map} +1 -1
  3. package/dist/_chunks/{Layout-DnEAvmeU.js → Layout-b_msoxIP.js} +2 -2
  4. package/dist/_chunks/{Layout-DnEAvmeU.js.map → Layout-b_msoxIP.js.map} +1 -1
  5. package/dist/_chunks/{_id-DSDzUpwX.js → _id-4xBYY7wK.js} +3 -4
  6. package/dist/_chunks/{_id-DSDzUpwX.js.map → _id-4xBYY7wK.js.map} +1 -1
  7. package/dist/_chunks/{_id-6LK95-rZ.mjs → _id-mkPbu6GX.mjs} +3 -4
  8. package/dist/_chunks/{_id-6LK95-rZ.mjs.map → _id-mkPbu6GX.mjs.map} +1 -1
  9. package/dist/_chunks/{index-DZSLya4b.js → index-C5NgBQMb.js} +2 -5
  10. package/dist/_chunks/{index-DZSLya4b.js.map → index-C5NgBQMb.js.map} +1 -1
  11. package/dist/_chunks/{index-6FZL88pd.js → index-CIGzoVfk.js} +3 -3
  12. package/dist/_chunks/{index-6FZL88pd.js.map → index-CIGzoVfk.js.map} +1 -1
  13. package/dist/_chunks/{index-lJqpw8bs.mjs → index-DL8-Q4Q5.mjs} +2 -5
  14. package/dist/_chunks/{index-lJqpw8bs.mjs.map → index-DL8-Q4Q5.mjs.map} +1 -1
  15. package/dist/_chunks/{index-Df1alkCk.mjs → index-D_k4wfAN.mjs} +3 -3
  16. package/dist/_chunks/{index-Df1alkCk.mjs.map → index-D_k4wfAN.mjs.map} +1 -1
  17. package/dist/_chunks/{router-CZqe-02r.js → router-BFr5lHsE.js} +3 -3
  18. package/dist/_chunks/{router-CZqe-02r.js.map → router-BFr5lHsE.js.map} +1 -1
  19. package/dist/_chunks/{router-DeSH-NeW.mjs → router-DnQKLQOJ.mjs} +3 -3
  20. package/dist/_chunks/{router-DeSH-NeW.mjs.map → router-DnQKLQOJ.mjs.map} +1 -1
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/dist/server/index.js +12 -7
  24. package/dist/server/index.js.map +1 -1
  25. package/dist/server/index.mjs +12 -7
  26. package/dist/server/index.mjs.map +1 -1
  27. package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -1
  28. package/package.json +6 -6
@@ -7607,13 +7607,13 @@ const reviewWorkflowsMetrics = {
7607
7607
  sendDidSendReviewWorkflowPropertiesOnceAWeek,
7608
7608
  sendDidEditAssignee
7609
7609
  };
7610
- function _typeof(obj) {
7610
+ function _typeof(o) {
7611
7611
  "@babel/helpers - typeof";
7612
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
7613
- return typeof obj2;
7614
- } : function(obj2) {
7615
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
7616
- }, _typeof(obj);
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({ [weeklySchedule]: this.sendMetrics.bind(this) });
7751
+ strapi2.cron.add({
7752
+ reviewWorkflowsWeekly: {
7753
+ task: this.sendMetrics.bind(this),
7754
+ options: weeklySchedule
7755
+ }
7756
+ });
7752
7757
  }
7753
7758
  };
7754
7759
  };