import type { ActionFunctionArgs } from "@remix-run/node"; import { authenticate } from "../shopify.server"; // TODO (Phase 4): sync Booking.status changes (e.g. fulfillment status) // back from order updates. See IMPLEMENTATION_PLAN.md ยง5.2. export const action = async ({ request }: ActionFunctionArgs) => { const { shop, topic, payload } = await authenticate.webhook(request); console.log(`Received ${topic} webhook for ${shop}`, payload); return new Response(); };