nodebb-plugin-onekite-calendar 2.0.28 → 2.0.29

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/lib/scheduler.js CHANGED
@@ -419,6 +419,10 @@ async function processAwaitingPayment() {
419
419
  }
420
420
 
421
421
  function start() {
422
+ const runJobs = nconf.get('runJobs');
423
+ if (runJobs === false || runJobs === 'false' || runJobs === 0 || runJobs === '0') {
424
+ return;
425
+ }
422
426
  if (timer) return;
423
427
  timer = setInterval(() => {
424
428
  expirePending().catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-onekite-calendar",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
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": "2.0.28"
42
+ "version": "2.0.29"
43
43
  }