🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
fix: default page param to 1 in funnel step sessions and goal sessions (#940)
Theo660dfdcb5b02
diff --git a/server/src/api/analytics/funnels/getFunnelStepSessions.ts b/server/src/api/analytics/funnels/getFunnelStepSessions.tsindex db597ed31..2c32596d8 100644--- a/server/src/api/analytics/funnels/getFunnelStepSessions.ts+++ b/server/src/api/analytics/funnels/getFunnelStepSessions.ts@@ -259,7 +259,7 @@ export async function getFunnelStepSessions(req: FastifyRequest<GetFunnelStepSesquery_params: {siteId: Number(siteId),limit: limit || 25,- offset: (page - 1) * (limit || 25),+ offset: ((page || 1) - 1) * (limit || 25),},});diff --git a/server/src/api/analytics/goals/getGoalSessions.ts b/server/src/api/analytics/goals/getGoalSessions.tsindex a64051621..4e844ace9 100644--- a/server/src/api/analytics/goals/getGoalSessions.ts+++ b/server/src/api/analytics/goals/getGoalSessions.ts@@ -166,7 +166,7 @@ export async function getGoalSessions(req: FastifyRequest<GetGoalSessionsRequestquery_params: {siteId: Number(siteId),limit: limit || 25,- offset: (page - 1) * (limit || 25),+ offset: ((page || 1) - 1) * (limit || 25),},});