datewise/app/routes/webhooks.orders.fulfilled.tsx
metatroncubeswdev e56182e0e3 chore: initial Datewise app (rebranded from SlotSure prototype)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:06:49 -04:00

10 lines
414 B
TypeScript

import type { ActionFunctionArgs } from "react-router";
import { authenticate } from "../shopify.server";
import { handleOrderFulfilled } from "../services/orders.server";
export const action = async ({ request }: ActionFunctionArgs) => {
const { shop, payload } = await authenticate.webhook(request);
await handleOrderFulfilled(shop, payload as { admin_graphql_api_id: string });
return new Response();
};