From d8988068b3f2850cefe95ee6fd7cc037bc046513 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sun, 10 Jan 2021 08:31:25 +0000 Subject: [PATCH] [CodeFactor] Apply fixes [ci skip] [skip ci] --- lib/routes/gov/shenzhen/xxgk/zfxxgj.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/gov/shenzhen/xxgk/zfxxgj.js b/lib/routes/gov/shenzhen/xxgk/zfxxgj.js index 9c0b790f36..18cb5a8982 100644 --- a/lib/routes/gov/shenzhen/xxgk/zfxxgj.js +++ b/lib/routes/gov/shenzhen/xxgk/zfxxgj.js @@ -25,13 +25,13 @@ const config = { module.exports = async (ctx) => { const cfg = config[ctx.params.caty]; - console.log(cfg.link) + console.log(cfg.link); if (!cfg) { throw Error('Bad category. See docs'); } const currentUrl = url.resolve(rootUrl, cfg.link); - + const response = await got({ method: 'get', url: currentUrl }); const $ = cheerio.load(response.data);