feat: add city/state/country to complex, new settings page with sidebar, and Biome linting
- Added city, state, and country optional fields to Complex model - Updated onboarding to include optional location fields - Created new settings page with sidebar navigation (Datos del Complejo, Canchas) - Replaced ESLint with Biome for frontend and backend linting - Added parallel dev script with concurrently - Migrated register-routes to use direct app.route() pattern
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
import {
|
||||
PublicBookingServiceError,
|
||||
getPublicBookingConfirmation,
|
||||
} from '@/modules/public-booking/services/public-booking.service'
|
||||
import type { AppContext } from '@/types/hono'
|
||||
} from '@/modules/public-booking/services/public-booking.service';
|
||||
import type { AppContext } from '@/types/hono';
|
||||
|
||||
type BookingCodeParams = {
|
||||
complexSlug: string
|
||||
bookingCode: string
|
||||
}
|
||||
complexSlug: string;
|
||||
bookingCode: string;
|
||||
};
|
||||
|
||||
export async function getPublicBookingConfirmationHandler(c: AppContext) {
|
||||
const { complexSlug, bookingCode } = c.req.valid('param' as never) as BookingCodeParams
|
||||
const { complexSlug, bookingCode } = c.req.valid('param' as never) as BookingCodeParams;
|
||||
|
||||
try {
|
||||
const booking = await getPublicBookingConfirmation(complexSlug, bookingCode)
|
||||
return c.json(booking)
|
||||
const booking = await getPublicBookingConfirmation(complexSlug, bookingCode);
|
||||
return c.json(booking);
|
||||
} catch (error) {
|
||||
if (error instanceof PublicBookingServiceError) {
|
||||
return c.json({ message: error.message }, error.status)
|
||||
return c.json({ message: error.message }, error.status);
|
||||
}
|
||||
|
||||
throw error
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user