From db18c561cbe6923bef7ae4b0b46ac659fa589902 Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Fri, 6 Dec 2024 07:54:20 +0800 Subject: [PATCH] fix(route/joneslanglasalle): radix to 10 and set default to 12 --- lib/routes/joneslanglasalle/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/joneslanglasalle/index.ts b/lib/routes/joneslanglasalle/index.ts index 763fc2db1..731c56f2c 100644 --- a/lib/routes/joneslanglasalle/index.ts +++ b/lib/routes/joneslanglasalle/index.ts @@ -36,7 +36,7 @@ const cleanHtml = (html: string, preservedTags: string[]): string => { export const handler = async (ctx: Context): Promise => { 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;