summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service_crunch.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/service_crunch.js b/service_crunch.js
index 55a1bb1..8fd91f7 100644
--- a/service_crunch.js
+++ b/service_crunch.js
@@ -125,6 +125,8 @@ module.exports = class Cruncher extends Service {
async crunchGlobal(db_identifier, queue_identifier="") {
const db = this.getDatabase(db_identifier),
key_name = "global_last_crunch_participant_id" + queue_identifier;
+ if (db == undefined) return;
+
// get lcpid from keys table
let last_crunch_participant_id = await this.getKey(db_identifier, key_name, 0);