Commit 660dfdc
authored
fix: default page param to 1 in funnel step sessions and goal sessions (#940)
When the `page` query parameter is omitted, the offset calculation
`(page - 1) * (limit || 25)` produces NaN, which causes the ClickHouse
query to fail with a 500 error.
Default `page` to 1 so both endpoints work without an explicit page param,
matching the behavior of other paginated endpoints like getSessions.
Fixes #9391 parent b6310de commit 660dfdc
File tree
2 files changed
+2
-2
lines changed- server/src/api/analytics
- funnels
- goals
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments