From 7f4b17bd66c471c7c6e6d104ca1f7fd535d200dc Mon Sep 17 00:00:00 2001 From: Amio Date: Tue, 14 Aug 2018 00:56:38 +0800 Subject: [PATCH] fix: (live-fns) codeclimate query --- libs/live-fns/codeclimate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/live-fns/codeclimate.js b/libs/live-fns/codeclimate.js index 6278d12..2ee4e25 100644 --- a/libs/live-fns/codeclimate.js +++ b/libs/live-fns/codeclimate.js @@ -32,7 +32,7 @@ module.exports = async (topic, user, repo) => { const getReport = async (repoId, reportId, type, topic) => { const api = `https://api.codeclimate.com/v1/repos/${repoId}/${type}/${reportId}` - const { meta, attributes } = await axios.get(api).then(res => res.body.data) + const { meta, attributes } = await axios.get(api).then(res => res.data.data) switch (topic) { case 'issues':