Skip to content

Commit 4cdcee2

Browse files
committed
Fix page size not being auto-applied when using no page param
1 parent c993ad1 commit 4cdcee2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blinkist-podcast-server",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "A Node.js server providing the daily blinks of blinkist.com as an audio podcast",
55
"main": "index.js",
66
"engines": {

src/server.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class Server {
3030
const options =
3131
!isNaN(page) && page > 0
3232
? { page, pageSize: this.feedPageSize }
33-
: {};
33+
: { page: 1, pageSize: this.feedPageSize };
3434

3535
const feedContent = await createFeedAsync(req, language, options);
3636
res.set("Content-Type", "application/xml");

0 commit comments

Comments
 (0)