[update_most_points_most_villages_best_rank_last_activity] fix player.last_activity condition

This commit is contained in:
Dawid Wysokiński 2021-01-09 17:10:00 +01:00
parent 909d3491af
commit 54502843cc
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ const (
NEW.best_rank = NEW.rank;
NEW.best_rank_at = now();
END IF;
if TG_TABLE_NAME = 'users' THEN
if TG_TABLE_NAME = 'players' THEN
IF NEW.points > OLD.points OR NEW.score_att > OLD.score_att THEN
NEW.last_activity_at = now();
END IF;