diff --git a/packages/features/accounts/src/server/api.ts b/packages/features/accounts/src/server/api.ts index b934e39..96366bd 100644 --- a/packages/features/accounts/src/server/api.ts +++ b/packages/features/accounts/src/server/api.ts @@ -214,7 +214,7 @@ class AccountsApi { .schema('medreport') .from('accounts_memberships') .select('account_id', { count: 'exact', head: true }) - .eq('account_id', accountId); + .eq('user_id', accountId); if (error) { throw error;