The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
orderPaid → ordersPaid
Steven Tey49f49444aeb9
diff --git a/apps/web/app/api/shopify/integration/webhook/order-paid.ts b/apps/web/app/api/shopify/integration/webhook/orders-paid.tssimilarity index 98%rename from apps/web/app/api/shopify/integration/webhook/order-paid.tsrename to apps/web/app/api/shopify/integration/webhook/orders-paid.tsindex 5020083e14..f0c5681165 100644--- a/apps/web/app/api/shopify/integration/webhook/order-paid.ts+++ b/apps/web/app/api/shopify/integration/webhook/orders-paid.ts@@ -5,7 +5,7 @@ import { redis } from "@/lib/upstash";import { prisma } from "@dub/prisma";import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";-export async function orderPaid({+export async function ordersPaid({event,workspaceId,}: {diff --git a/apps/web/app/api/shopify/integration/webhook/route.ts b/apps/web/app/api/shopify/integration/webhook/route.tsindex 6ae36761c3..7d1c5a32f4 100644--- a/apps/web/app/api/shopify/integration/webhook/route.ts+++ b/apps/web/app/api/shopify/integration/webhook/route.ts@@ -4,7 +4,7 @@ import crypto from "crypto";import { appUninstalled } from "./app-uninstalled";import { customersDataRequest } from "./customers-data-request";import { customersRedact } from "./customers-redact";-import { orderPaid } from "./order-paid";+import { ordersPaid } from "./orders-paid";import { shopRedact } from "./shop-redact";const relevantTopics = new Set([@@ -65,7 +65,7 @@ export const POST = async (req: Request) => {try {switch (topic) {case "orders/paid":- response = await orderPaid({+ response = await ordersPaid({event,workspaceId: workspace.id,});