mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: limit recentActivity query results to last 105 days
This commit is contained in:
parent
f343992ee6
commit
f535fdc6d7
1 changed files with 1 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ class MatchRepository {
|
||||||
${this.JOIN_MATCHES}
|
${this.JOIN_MATCHES}
|
||||||
WHERE
|
WHERE
|
||||||
match_players.summoner_puuid = :puuid
|
match_players.summoner_puuid = :puuid
|
||||||
|
AND to_timestamp(matches.date/1000)::date > (CURRENT_DATE - INTERVAL '105 days')
|
||||||
GROUP BY
|
GROUP BY
|
||||||
day
|
day
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue