Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

cleanup

Kiran K525c824fea9f
diff --git a/apps/web/app/(ee)/api/singular/webhook/route.ts b/apps/web/app/(ee)/api/singular/webhook/route.ts
index a0e30f6ecc..fc21758ab0 100644
--- a/apps/web/app/(ee)/api/singular/webhook/route.ts
+++ b/apps/web/app/(ee)/api/singular/webhook/route.ts
@@ -1,5 +1,4 @@
import { DubApiError, handleAndReturnErrorResponse } from "@/lib/api/errors";
-import { refundSingularSaleEvent } from "@/lib/integrations/singular/refund-sale";
import { trackSingularLeadEvent } from "@/lib/integrations/singular/track-lead";
import { trackSingularSaleEvent } from "@/lib/integrations/singular/track-sale";
import { prisma } from "@dub/prisma";
@@ -12,7 +11,6 @@ const singularToDubEvent = {
sng_subscribe: "sale",
sng_ecommerce_purchase: "sale",
__iap__: "sale", // In-app purchase
- Refund: "refund",
"Copy GAID": "lead", // Singular Device Assist
"copy IDFA": "lead", // Singular Device Assist
};
@@ -96,11 +94,6 @@ export const GET = async (req: Request) => {
queryParams,
workspace,
});
- } else if (dubEvent === "refund") {
- await refundSingularSaleEvent({
- queryParams,
- workspace,
- });
} else {
throw new DubApiError({
code: "bad_request",
diff --git a/apps/web/lib/integrations/singular/refund-sale.ts b/apps/web/lib/integrations/singular/refund-sale.ts
deleted file mode 100644
index 27e3e9b041..0000000000
--- a/apps/web/lib/integrations/singular/refund-sale.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { WorkspaceProps } from "@/lib/types";
-
-export const refundSingularSaleEvent = async ({
- queryParams,
- workspace,
-}: {
- queryParams: Record<string, string>;
- workspace: Pick<WorkspaceProps, "id" | "stripeConnectId" | "webhookEnabled">;
-}) => {
- // TODO:
- // Not implemented
-};