Skip to content

Commit

Permalink
fix: req param typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Mar 4, 2024
1 parent 526a194 commit c93541e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/routes/ciweimao/chapter.ts
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

export default async (ctx) => {
const id = ctx.req.param.get('id');
const id = ctx.req.param('id');
const limit = Number.parseInt(ctx.req.query('limit')) || 10;

const baseUrl = 'https://wap.ciweimao.com';
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/hbooker/chapter.ts
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

export default async (ctx) => {
const id = ctx.req.param.get('id');
const id = ctx.req.param('id');
const limit = Number.parseInt(ctx.req.query('limit')) || 10;

const baseUrl = 'https://www.hbooker.com';
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/rsshub/media.ts
Expand Up @@ -9,7 +9,7 @@ export default async (ctx) => {
throw new Error('Internal media proxy is disabled.');
}

const key = ctx.req.param.get('key');
const key = ctx.req.param('key');
if (key !== config.feature.mediaProxyKey) {
throw new Error('Invalid media proxy key.');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/sfacg/novel-chapter.ts
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';

export default async (ctx) => {
const id = ctx.req.param.get('id');
const id = ctx.req.param('id');
const limit = Number.parseInt(ctx.req.query('limit')) || 20;

const baseUrl = 'https://book.sfacg.com';
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/wmpvp/index.ts
Expand Up @@ -3,7 +3,7 @@ import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';

export default async (ctx) => {
const type = ctx.req.param.get('type');
const type = ctx.req.param('type');

const response = await got({
method: 'get',
Expand Down

0 comments on commit c93541e

Please sign in to comment.