hasAccountTeamMembership should look at in user_id not account_id
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user