mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-25 14:53:26 +00:00
[AB-xxx] fixing incorrect join for deleted emote stats
This commit is contained in:
@@ -75,7 +75,7 @@ public interface UsedEmoteRepository extends JpaRepository<UsedEmote, UsedEmoteD
|
|||||||
"on us.emote_id = te.id " +
|
"on us.emote_id = te.id " +
|
||||||
"and us.server_id = te.server_id " +
|
"and us.server_id = te.server_id " +
|
||||||
"and us.use_date >= date_trunc('day', cast(:start_date AS timestamp)) " +
|
"and us.use_date >= date_trunc('day', cast(:start_date AS timestamp)) " +
|
||||||
"and te.server_id = :server_id " +
|
"where te.server_id = :server_id " +
|
||||||
"and te.deleted = true " +
|
"and te.deleted = true " +
|
||||||
"group by te.id, te.server_id " +
|
"group by te.id, te.server_id " +
|
||||||
"order by amount desc", nativeQuery = true)
|
"order by amount desc", nativeQuery = true)
|
||||||
|
|||||||
Reference in New Issue
Block a user