mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-03-10 04:51:47 +00:00
feat(dashboard): add quick actions and new overview widgets
This commit is contained in:
@@ -69,7 +69,10 @@ export async function fetchTopEstablishments(
|
||||
),
|
||||
)
|
||||
.groupBy(lancamentos.name)
|
||||
.orderBy(sql`ABS(sum(${lancamentos.amount})) DESC`)
|
||||
.orderBy(
|
||||
sql`count(${lancamentos.id}) DESC`,
|
||||
sql`ABS(sum(${lancamentos.amount})) DESC`,
|
||||
)
|
||||
.limit(10);
|
||||
|
||||
const establishments = rows
|
||||
|
||||
Reference in New Issue
Block a user