Skip to content

Commit cf68262

Browse files
committed
refactor: Use FINAL keyword in player_match_history queries for consistency
1 parent 3cafa8e commit cf68262

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/v1/players/enemy_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn build_query(account_id: u32, query: &EnemyStatsQuery) -> String {
9797
sum(not won) as wins,
9898
uniq(match_id) as matches_played,
9999
groupArray(match_id) as matches
100-
FROM player_match_history
100+
FROM player_match_history FINAL
101101
WHERE (match_id, player_team) IN t_matches
102102
GROUP BY account_id
103103
{having_clause}

src/routes/v1/players/mate_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn build_query(account_id: u32, query: &MateStatsQuery) -> String {
127127
sum(won) as wins,
128128
uniq(match_id) as matches_played,
129129
groupUniqArray(match_id) as matches
130-
FROM player_match_history
130+
FROM player_match_history FINAL
131131
WHERE (match_id, player_team) IN t_histories AND account_id != {account_id}
132132
GROUP BY account_id
133133
{having_clause}

0 commit comments

Comments
 (0)