import type { ActionFunctionArgs } from "@remix-run/node"; import { authenticate } from "../shopify.server"; // GDPR: a customer (or Shopify on their behalf) requesting their data. // TODO (Phase 8): compile and return the shop's stored Booking/Waitlist/ // Reschedule/Notification records for this customer. 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(); };