fix deaths while equipped count
This commit is contained in:
@@ -83,7 +83,6 @@ async function processGlobalStats() {
|
|||||||
.select([
|
.select([
|
||||||
count<number>('id').as('deaths'),
|
count<number>('id').as('deaths'),
|
||||||
'victim_id',
|
'victim_id',
|
||||||
sql<string>`last(victim_name)`.as('victim_name'),
|
|
||||||
'victim_current_weapon',
|
'victim_current_weapon',
|
||||||
'map',
|
'map',
|
||||||
'game_mode',
|
'game_mode',
|
||||||
@@ -109,7 +108,7 @@ async function processGlobalStats() {
|
|||||||
.onRef('deaths.game_mode', '=', 'kills.game_mode')
|
.onRef('deaths.game_mode', '=', 'kills.game_mode')
|
||||||
.onRef('deaths.map', '=', 'kills.map')
|
.onRef('deaths.map', '=', 'kills.map')
|
||||||
)
|
)
|
||||||
.fullJoin('deathswithweapon', (join) =>
|
.leftJoin('deathswithweapon', (join) =>
|
||||||
join
|
join
|
||||||
.onRef('deathswithweapon.victim_id', '=', 'kills.attacker_id')
|
.onRef('deathswithweapon.victim_id', '=', 'kills.attacker_id')
|
||||||
.onRef('deathswithweapon.victim_current_weapon', '=', 'kills.cause_of_death')
|
.onRef('deathswithweapon.victim_current_weapon', '=', 'kills.cause_of_death')
|
||||||
|
|||||||
Reference in New Issue
Block a user