feat(billing): enhance health benefit form and yearly expenses overview with employee count and loading state
This commit is contained in:
@@ -295,6 +295,20 @@ export class TeamAccountsApi {
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
async getMembers(accountSlug: string) {
|
||||
const members = await this.client
|
||||
.schema('medreport')
|
||||
.rpc('get_account_members', {
|
||||
account_slug: accountSlug,
|
||||
});
|
||||
|
||||
if (members.error) {
|
||||
throw members.error;
|
||||
}
|
||||
|
||||
return members.data;
|
||||
}
|
||||
}
|
||||
|
||||
export function createTeamAccountsApi(client: SupabaseClient<Database>) {
|
||||
|
||||
Reference in New Issue
Block a user