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 +4 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
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
package/plugin.json
CHANGED