fix: (live-fns) codeclimate query

pull/115/head
Amio 2018-08-14 00:56:38 +08:00
rodzic 86dfa3f6e2
commit 7f4b17bd66
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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