feat(MED-97): display accounts count, usage total

This commit is contained in:
2025-09-26 16:34:10 +03:00
parent 27689dbbff
commit 2d9e6f8df3
7 changed files with 58 additions and 29 deletions

View File

@@ -29,7 +29,7 @@ export const loadCompanyPersonalAccountsBalanceEntries = async ({
const { count, data: accountMemberships } = await supabase
.schema('medreport')
.from('accounts_memberships')
.select('user_id')
.select('user_id', { count: 'exact' })
.eq('account_id', accountId)
.throwOnError();