From ec4c75fdd21e5f8ae1f7bfcddaadc532202468a6 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 21 Apr 2023 11:54:07 +0200 Subject: [PATCH] fix deaths while equipped count --- src/process/process.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/process/process.ts b/src/process/process.ts index 33334ae..829be7d 100644 --- a/src/process/process.ts +++ b/src/process/process.ts @@ -83,7 +83,6 @@ async function processGlobalStats() { .select([ count('id').as('deaths'), 'victim_id', - sql`last(victim_name)`.as('victim_name'), 'victim_current_weapon', 'map', 'game_mode', @@ -109,7 +108,7 @@ async function processGlobalStats() { .onRef('deaths.game_mode', '=', 'kills.game_mode') .onRef('deaths.map', '=', 'kills.map') ) - .fullJoin('deathswithweapon', (join) => + .leftJoin('deathswithweapon', (join) => join .onRef('deathswithweapon.victim_id', '=', 'kills.attacker_id') .onRef('deathswithweapon.victim_current_weapon', '=', 'kills.cause_of_death')