From 1a98e5757ed9a4ac7e088c999ae8775d8acb6fc9 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 6 Jan 2018 14:01:00 +0100 Subject: hotfix for crash on brawls crunch --- service_crunch.js | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.3.1