fix: limit recentActivity query results to last 105 days

This commit is contained in:
Valentin Kaelin 2021-09-28 11:15:15 +02:00
parent f343992ee6
commit f535fdc6d7

View file

@ -22,6 +22,7 @@ class MatchRepository {
${this.JOIN_MATCHES}
WHERE
match_players.summoner_puuid = :puuid
AND to_timestamp(matches.date/1000)::date > (CURRENT_DATE - INTERVAL '105 days')
GROUP BY
day
ORDER BY