refactor: remove obsolete member management API module
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createMemberManagementApi } from '@kit/member-management/api';
|
||||
import { ApplicationWorkflow } from '@kit/member-management/components';
|
||||
import { createMemberServices } from '@kit/member-management/services';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
@@ -19,8 +19,8 @@ export default async function ApplicationsPage({ params }: Props) {
|
||||
.single();
|
||||
if (!acct) return <AccountNotFound />;
|
||||
|
||||
const api = createMemberManagementApi(client);
|
||||
const applications = await api.listApplications(acct.id);
|
||||
const { workflow } = createMemberServices(client);
|
||||
const applications = await workflow.listApplications(acct.id);
|
||||
|
||||
return (
|
||||
<ApplicationWorkflow
|
||||
|
||||
Reference in New Issue
Block a user