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 get-events.ts

Steven Teyd05e9905d6a3
diff --git a/apps/web/lib/analytics/get-events.ts b/apps/web/lib/analytics/get-events.ts
index b251f193e6..0471263ee7 100644
--- a/apps/web/lib/analytics/get-events.ts
+++ b/apps/web/lib/analytics/get-events.ts
@@ -1,5 +1,4 @@
import { tb } from "@/lib/tinybird";
-import { PAGINATION_LIMIT } from "@dub/utils";
import { z } from "zod";
import { tbDemo } from "../tinybird/demo-client";
import { eventsFilterTB } from "../zod/schemas/analytics";
@@ -48,7 +47,7 @@ export const getEvents = async (
...params,
eventType: event,
workspaceId,
- offset: params.page * PAGINATION_LIMIT,
+ offset: params.page * params.limit,
start: start.toISOString().replace("T", " ").replace("Z", ""),
end: end.toISOString().replace("T", " ").replace("Z", ""),
});