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