Skip to content

Commit

Permalink
fix(route/joneslanglasalle): radix to 10 and set default to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Dec 5, 2024
1 parent d7447b2 commit db18c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/joneslanglasalle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const cleanHtml = (html: string, preservedTags: string[]): string => {
export const handler = async (ctx: Context): Promise<Data> => {
const { language: lang = 'zh', category = 'trends-and-insights' } = ctx.req.param();
// default limit is 12
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '11', 11);
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '12', 10);

const rootUrl: string = 'https://www.joneslanglasalle.com.cn';
const targetUrl: string = new URL(`${lang}/${category}`, rootUrl).href;
Expand Down

0 comments on commit db18c56

Please sign in to comment.