The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K735dcc120701
diff --git a/apps/web/app/(ee)/api/shopify/integration/webhook/route.ts b/apps/web/app/(ee)/api/shopify/integration/webhook/route.tsindex dec0ae18dd..a96ec590e3 100644--- a/apps/web/app/(ee)/api/shopify/integration/webhook/route.ts+++ b/apps/web/app/(ee)/api/shopify/integration/webhook/route.ts@@ -27,6 +27,12 @@ export const POST = async (req: Request) => {const headers = req.headers;const topic = headers.get("x-shopify-topic") || "";const signature = headers.get("x-shopify-hmac-sha256") || "";+ const shopDomain = headers.get("x-shopify-shop-domain") || "";++ console.info("Webhook event", {+ shopDomain,+ topic,+ });if (!isLocalDev) {// Verify signature@@ -51,7 +57,6 @@ export const POST = async (req: Request) => {}const event = JSON.parse(data);- const shopDomain = headers.get("x-shopify-shop-domain") || "";// Find workspaceconst workspace = await prisma.project.findUnique({@@ -71,12 +76,6 @@ export const POST = async (req: Request) => {);}- console.info("Webhook event", {- workspaceId: workspace.id,- shopDomain,- topic,- });-const requestLog = {workspaceId: workspace.id,method: req.method,