Skip to content

Commit

Permalink
fix(route/the): Adjust default limit to get the latest articles (DIYg…
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Oct 17, 2024
1 parent 65114a5 commit c986500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/the/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import timezone from '@/utils/timezone';

export const handler = async (ctx) => {
const { filter } = ctx.req.param();
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 50;
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 40;

const rootUrl = 'https://the.bi/s';
const filters = parseFilterStr(filter);
Expand Down

0 comments on commit c986500

Please sign in to comment.