refactor: remove obsolete member management API module
This commit is contained in:
@@ -82,7 +82,7 @@ export default async function BookingCalendarPage({ params }: PageProps) {
|
||||
const monthStart = `${year}-${String(month + 1).padStart(2, '0')}-01`;
|
||||
const monthEnd = `${year}-${String(month + 1).padStart(2, '0')}-${String(daysInMonth).padStart(2, '0')}`;
|
||||
|
||||
const bookings = await api.listBookings(acct.id, {
|
||||
const bookings = await api.bookings.list(acct.id, {
|
||||
from: monthStart,
|
||||
to: monthEnd,
|
||||
page: 1,
|
||||
|
||||
@@ -34,7 +34,7 @@ export default async function GuestsPage({ params }: PageProps) {
|
||||
}
|
||||
|
||||
const api = createBookingManagementApi(client);
|
||||
const guests = await api.listGuests(acct.id);
|
||||
const guests = await api.guests.list(acct.id);
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title={t('guests.title')}>
|
||||
|
||||
@@ -29,7 +29,7 @@ export default async function NewBookingPage({ params }: Props) {
|
||||
}
|
||||
|
||||
const api = createBookingManagementApi(client);
|
||||
const rooms = await api.listRooms(acct.id);
|
||||
const rooms = await api.rooms.list(acct.id);
|
||||
|
||||
return (
|
||||
<CmsPageShell
|
||||
|
||||
@@ -54,7 +54,7 @@ export default async function BookingsPage({
|
||||
const page = Number(search.page) || 1;
|
||||
|
||||
const api = createBookingManagementApi(client);
|
||||
const rooms = await api.listRooms(acct.id);
|
||||
const rooms = await api.rooms.list(acct.id);
|
||||
|
||||
// Fetch bookings with joined room & guest names (avoids displaying raw UUIDs)
|
||||
const bookingsQuery = client
|
||||
|
||||
@@ -36,7 +36,7 @@ export default async function RoomsPage({ params }: PageProps) {
|
||||
}
|
||||
|
||||
const api = createBookingManagementApi(client);
|
||||
const rooms = await api.listRooms(acct.id);
|
||||
const rooms = await api.rooms.list(acct.id);
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title={t('rooms.title')}>
|
||||
|
||||
Reference in New Issue
Block a user