style: auto format

This commit is contained in:
github-actions[bot] 2022-08-11 12:05:28 +00:00
parent 99856214aa
commit e8f649dd62
1 changed files with 3 additions and 5 deletions

View File

@ -1,9 +1,9 @@
const got = require('@/utils/got');
const util = require("./util");
const util = require('./util');
module.exports = async (ctx) => {
const base_url = 'https://gocn.vip/topics';
const api_url = 'https://gocn.vip/apiv3/topic/list?currentPage=1&cate2Id=0&grade=new';
const api_url = 'https://gocn.vip/apiv3/topic/list?currentPage=1&cate2Id=0&grade=new';
const response = await got({
url: api_url,
@ -18,8 +18,6 @@ module.exports = async (ctx) => {
title: `GoCN社区-文章`,
link: base_url,
description: `获取GoCN站点最新文章`,
item: await Promise.all(
list.map(async (item) => await ctx.cache.tryGet(`${base_url}/${item.guid}`, () => util.getFeedItem(item))),
),
item: await Promise.all(list.map(async (item) => await ctx.cache.tryGet(`${base_url}/${item.guid}`, () => util.getFeedItem(item)))),
};
};