fix reference to old materialized view
This commit is contained in:
parent
03b1b173ad
commit
3106850ce9
|
@ -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}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue