The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update
Kiran Kc75c5e0c417a
diff --git a/apps/web/app/api/slack/callback/route.ts b/apps/web/app/api/slack/callback/route.tsindex 6f89c89dc3..f012bb2538 100644--- a/apps/web/app/api/slack/callback/route.ts+++ b/apps/web/app/api/slack/callback/route.ts@@ -97,16 +97,12 @@ export const GET = async (req: Request) => {},};- const installation = await installIntegration({+ await installIntegration({integrationId: SLACK_INTEGRATION_ID,userId: session.user.id,workspaceId,credentials,});-- // Add the webhook if the installation was successful- if (installation) {- }} catch (e: any) {return handleAndReturnErrorResponse(e);}diff --git a/apps/web/app/api/stripe/webhook/customer-subscription-updated.ts b/apps/web/app/api/stripe/webhook/customer-subscription-updated.tsindex 3df44949d2..e3eea3e8f9 100644--- a/apps/web/app/api/stripe/webhook/customer-subscription-updated.ts+++ b/apps/web/app/api/stripe/webhook/customer-subscription-updated.ts@@ -87,7 +87,7 @@ export async function customerSubscriptionUpdated(event: Stripe.Event) {},}),- // Disable the webhooks if the plan is downgraded to free+ // Disable the webhooks if the new plan does not support webhooks...(shouldDisableWebhooks? [prisma.webhook.updateMany({diff --git a/apps/web/app/api/webhooks/[webhookId]/route.ts b/apps/web/app/api/webhooks/[webhookId]/route.tsindex d1044b14d4..d14708c1de 100644--- a/apps/web/app/api/webhooks/[webhookId]/route.ts+++ b/apps/web/app/api/webhooks/[webhookId]/route.ts@@ -198,7 +198,6 @@ export const PATCH = withWorkspace(// No changes in the linksif (!linksAdded.length && !linksRemoved.length) {- console.log("No changes in the links");return;}diff --git a/apps/web/lib/tinybird/record-click.ts b/apps/web/lib/tinybird/record-click.tsindex 8ecd16a584..7212bdf3f8 100644--- a/apps/web/lib/tinybird/record-click.ts+++ b/apps/web/lib/tinybird/record-click.ts@@ -148,7 +148,7 @@ export async function recordClick({// and then we have a cron that will reset it at the start of new billing cycleurl &&conn.execute(- "UPDATE Project p JOIN Link l ON p.id = l.projectId SET p.usage = p.usage + 1 WHERE l.id = ?;",+ "UPDATE Project p JOIN Link l ON p.id = l.projectId SET p.usage = p.usage + 1 WHERE l.id = ?",[linkId],),