import type { ActionFunctionArgs } from "@remix-run/node"; import { authenticate } from "../shopify.server"; // GDPR: erase a specific customer's data (fires 10 days after a data // erasure request, or 6 months after their last order on the shop). // TODO (Phase 8): purge/anonymize Booking.customerEmail/customerPhone, // Waitlist entries, and Notification payloads 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(); };