refactor: remove obsolete member management API module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Users } from 'lucide-react';
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { createMemberManagementApi } from '@kit/member-management/api';
|
||||
import { createMemberServices } from '@kit/member-management/services';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
@@ -26,8 +26,8 @@ export default async function DepartmentsPage({ params }: Props) {
|
||||
.single();
|
||||
if (!acct) return <AccountNotFound />;
|
||||
|
||||
const api = createMemberManagementApi(client);
|
||||
const departments = await api.listDepartments(acct.id);
|
||||
const { organization } = createMemberServices(client);
|
||||
const departments = await organization.listDepartments(acct.id);
|
||||
|
||||
return (
|
||||
<CmsPageShell
|
||||
|
||||
Reference in New Issue
Block a user