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.

fix the types

Kiran Kf23634b394e5
diff --git a/apps/web/lib/integrations/slack/transform.ts b/apps/web/lib/integrations/slack/transform.ts
index 775adfa0d1..d8787eb127 100644
--- a/apps/web/lib/integrations/slack/transform.ts
+++ b/apps/web/lib/integrations/slack/transform.ts
@@ -6,7 +6,7 @@ import { webhookPayloadSchema } from "../../webhook/schemas";
import {
ClickEventWebhookData,
LeadEventWebhookData,
- PartnerEventWebhookData,
+ PartnerEventDataProps,
SaleEventWebhookData,
} from "../../webhook/types";
@@ -200,7 +200,7 @@ const createSaleTemplate = ({ data }: { data: SaleEventWebhookData }) => {
};
};
-const createPartnerTemplate = ({ data }: { data: PartnerEventWebhookData }) => {
+const createPartnerTemplate = ({ data }: { data: PartnerEventDataProps }) => {
const { name, email, country } = data;
return {
diff --git a/apps/web/lib/webhook/types.ts b/apps/web/lib/webhook/types.ts
index 6fb503a293..86095f0b04 100644
--- a/apps/web/lib/webhook/types.ts
+++ b/apps/web/lib/webhook/types.ts
@@ -35,5 +35,3 @@ export type ClickEventWebhookData = z.infer<typeof clickWebhookEventSchema>;
export type LeadEventWebhookData = z.infer<typeof leadWebhookEventSchema>;
export type SaleEventWebhookData = z.infer<typeof saleWebhookEventSchema>;
-
-export type PartnerEventWebhookData = z.infer<typeof PartnerSchema>;