Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 18, 2024
1 parent ab33591 commit 1f31cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/tencent/news/author.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const route: Route = {

async function handler(ctx) {
const mid = ctx.req.param('mid');
const userType = /^\d+$/.test(mid) ? "chlid" : "guestSuid";
const userType = /^\d+$/.test(mid) ? 'chlid' : 'guestSuid';
const homePageInfoUrl = `https://i.news.qq.com/i/getUserHomepageInfo?${userType}=${mid}`;
const userInfo = await cache.tryGet(homePageInfoUrl, async () => (await got(homePageInfoUrl)).data.userinfo);
const title = userInfo.nick;
Expand Down

0 comments on commit 1f31cbb

Please sign in to comment.