hasAccountTeamMembership should look at in user_id not account_id

This commit is contained in:
Danel Kungla
2025-10-10 15:29:40 +03:00
parent 2a3f7248a1
commit 30e6e47cc7

View File

@@ -214,7 +214,7 @@ class AccountsApi {
.schema('medreport') .schema('medreport')
.from('accounts_memberships') .from('accounts_memberships')
.select('account_id', { count: 'exact', head: true }) .select('account_id', { count: 'exact', head: true })
.eq('account_id', accountId); .eq('user_id', accountId);
if (error) { if (error) {
throw error; throw error;