From 4c392e02fe57b1dd2cd68bb76d83ecb171a32653 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Mon, 8 Jul 2024 19:36:35 +0800 Subject: [PATCH] Replace Accounts API with Team Accounts API in billing page loader The commit modifies the teamAccountBillingPageLoader by swapping out the previously used Accounts API for the Team Accounts API. This change includes adjustments in the import statement and the creation of the api variable, aligning better with the team account related functionalities. --- .../[account]/_lib/server/team-account-billing-page.loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/app/home/[account]/_lib/server/team-account-billing-page.loader.ts b/apps/web/app/home/[account]/_lib/server/team-account-billing-page.loader.ts index 16beda856..09ef2908a 100644 --- a/apps/web/app/home/[account]/_lib/server/team-account-billing-page.loader.ts +++ b/apps/web/app/home/[account]/_lib/server/team-account-billing-page.loader.ts @@ -4,8 +4,8 @@ import { cache } from 'react'; import { z } from 'zod'; -import { createAccountsApi } from '@kit/accounts/api'; import { getSupabaseServerComponentClient } from '@kit/supabase/server-component-client'; +import { createTeamAccountsApi } from '@kit/team-accounts/api'; /** * The variable BILLING_MODE represents the billing mode for a service. It can @@ -30,7 +30,7 @@ export const loadTeamAccountBillingPage = cache(teamAccountBillingPageLoader); function teamAccountBillingPageLoader(accountId: string) { const client = getSupabaseServerComponentClient(); - const api = createAccountsApi(client); + const api = createTeamAccountsApi(client); const data = BILLING_MODE === 'subscription'