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.

fixed ts errors

Steven Teyc78f52d6a111
diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].ts
index 904a336f88..81c9416724 100644
--- a/pages/api/edge/links/[key]/stats/[endpoint].ts
+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts
@@ -30,6 +30,7 @@ export default async function handler(req: NextRequest) {
key,
endpoint,
interval,
+ createdAt: new Date("2022-09-22"),
});
return new Response(JSON.stringify(response), { status: 200 });
diff --git a/pages/api/links/[key]/stats/[endpoint].ts b/pages/api/links/[key]/stats/[endpoint].ts
index 1e18f6fafe..bdf33a7a69 100644
--- a/pages/api/links/[key]/stats/[endpoint].ts
+++ b/pages/api/links/[key]/stats/[endpoint].ts
@@ -25,7 +25,6 @@ export default withLinksAuth(
interval,
createdAt: link?.createdAt || new Date("2022-09-22"),
});
- if (endpoint === "timeseries") console.log(response);
if (!response) {
return res.status(405).end(`Method ${req.method} Not Allowed`);