mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 19:01:47 +00:00
refactor: agrega queries e cache do dashboard
This commit is contained in:
@@ -64,9 +64,7 @@ export async function fetchDashboardAccounts(
|
||||
eq(transactions.accountId, financialAccounts.id),
|
||||
eq(transactions.userId, userId),
|
||||
eq(transactions.isSettled, true),
|
||||
adminPayerId
|
||||
? eq(transactions.payerId, adminPayerId)
|
||||
: sql`false`,
|
||||
adminPayerId ? eq(transactions.payerId, adminPayerId) : sql`false`,
|
||||
),
|
||||
)
|
||||
.where(eq(financialAccounts.userId, userId))
|
||||
|
||||
Reference in New Issue
Block a user