Skip to content

Commit

Permalink
fix(route/caixin): Fix query (#13614)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Oct 23, 2023
1 parent 4753727 commit b4ad158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/v2/caixin/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit b4ad158

Please sign in to comment.