From b4ad15812bcef9bbe34ab549b0d515f8d30fc756 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Mon, 23 Oct 2023 19:02:53 +0800 Subject: [PATCH] fix(route/caixin): Fix query (#13614) --- lib/v2/caixin/blog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/v2/caixin/blog.js b/lib/v2/caixin/blog.js index 6f9c6dc0538b8c..6166a9b2a4bd7f 100644 --- a/lib/v2/caixin/blog.js +++ b/lib/v2/caixin/blog.js @@ -5,7 +5,8 @@ const { parseDate } = require('@/utils/parse-date'); const { parseBlogArticle } = require('./utils'); module.exports = async (ctx) => { - const { column, limit = 20 } = ctx.params; + const { column } = ctx.params; + const { limit = 20 } = ctx.query; if (!column) { const { data } = await got('https://blog.caixin.com/blog-api/post/index', { searchParams: {