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':