fix reference to old materialized view

This commit is contained in:
keyan 2024-02-16 12:58:50 -06:00
parent 03b1b173ad
commit 3106850ce9
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default {
FROM user_stats_days
JOIN users on users.id = user_stats_days.id
WHERE NOT users."hideFromTopUsers"
AND user_stats_days.day = (SELECT max(day) FROM user_stats_days)
AND user_stats_days.t = (SELECT max(t) FROM user_stats_days)
ORDER BY msats_stacked DESC, users.created_at ASC
LIMIT ${limit}`
}