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.

Update bitly.ts

Steven Teyaec57125e830
diff --git a/pages/api/projects/[slug]/import/bitly.ts b/pages/api/projects/[slug]/import/bitly.ts
index a11da71650..0a9cfc6cba 100644
--- a/pages/api/projects/[slug]/import/bitly.ts
+++ b/pages/api/projects/[slug]/import/bitly.ts
@@ -4,7 +4,7 @@ import prisma from "#/lib/prisma";
import { BitlyGroupProps } from "#/lib/types";
import { qstash, redis } from "#/lib/upstash";
-export default withProjectAuth(async (req, res, project, session) => {
+export default withProjectAuth(async (req, res, project) => {
// get bitly groups and their respective domains
if (req.method === "GET") {
const accessToken = await redis.get(`import:bitly:${project.id}`);
@@ -105,9 +105,6 @@ export default withProjectAuth(async (req, res, project, session) => {
}),
),
);
-
- console.log(groups);
-
- return res.status(200).json(groups);
+ return res.status(200).json(response);
}
});