nodebb-plugin-calendar-onekite 12.0.22 → 12.0.23

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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.3.1
2
+ - Hotfix: fix duplicate `const supd` declaration causing startup crash.
3
+
1
4
  ## 1.3.0
2
5
  ### Optimisations / robustesse
3
6
  - Scheduler : lecture des réservations en batch (suppression du N+1 DB) + envoi email factorisé.
package/lib/api.js CHANGED
@@ -407,8 +407,6 @@ api.getEvents = async function (req, res) {
407
407
  const supd = parseInt(sev.updatedAt || sev.modifiedAt || sev.createdAt || 0, 10) || 0;
408
408
  if (supd > maxUpdated) maxUpdated = supd;
409
409
  const full = eventsForSpecial(sev);
410
- const supd = parseInt(sev.updatedAt || sev.modifiedAt || sev.createdAt || 0, 10) || 0;
411
- if (supd > maxUpdated) maxUpdated = supd;
412
410
  const minimal = {
413
411
  id: full.id,
414
412
  title: full.title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-calendar-onekite",
3
- "version": "12.0.22",
3
+ "version": "12.0.23",
4
4
  "description": "FullCalendar-based equipment reservation workflow with admin approval & HelloAsso payment for NodeBB",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "acpScripts": [
40
40
  "public/admin.js"
41
41
  ],
42
- "version": "1.3.0"
42
+ "version": "1.3.1"
43
43
  }