The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add debug logs
Kiran K8515aa582ec2
diff --git a/apps/web/lib/integrations/hubspot/get-contact.ts b/apps/web/lib/integrations/hubspot/get-contact.tsindex 57027b0b05..1c089640d3 100644--- a/apps/web/lib/integrations/hubspot/get-contact.ts+++ b/apps/web/lib/integrations/hubspot/get-contact.ts@@ -21,6 +21,10 @@ export async function getHubSpotContact({const result = await response.json();+ if (process.env.NODE_ENV === "development") {+ console.log("HubSpot contact", result);+ }+if (!response.ok) {throw new Error(result.message);}diff --git a/apps/web/lib/integrations/hubspot/get-deal.ts b/apps/web/lib/integrations/hubspot/get-deal.tsindex 32f759526b..70afd7fb56 100644--- a/apps/web/lib/integrations/hubspot/get-deal.ts+++ b/apps/web/lib/integrations/hubspot/get-deal.ts@@ -21,6 +21,10 @@ export async function getHubSpotDeal({const result = await response.json();+ if (process.env.NODE_ENV === "development") {+ console.log("HubSpot deal", result);+ }+if (!response.ok) {throw new Error(result.message);}