fix: sql req diff displaying deleted squads

This commit is contained in:
norohind 2022-05-03 22:47:09 +03:00
parent 19cec1fa0e
commit bfd68f9afa
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -108,7 +108,7 @@ with origin_record as (
coalesce(new_stats.score, 0) as "total_experience",
coalesce(old_stats.score, 0) as "total_experience_old",
coalesce(new_stats.score, 0) - coalesce(old_stats.score, 0) as "total_experience_diff",
new_stats.action_id as action_id
coalesce(new_stats.action_id, old_stats.action_id) as action_id
from (
select *
from squads_stats_states_data