kopia lustrzana https://github.com/badgen/badgen.net
fix: (live-fns) codeclimate query
rodzic
86dfa3f6e2
commit
7f4b17bd66
|
@ -32,7 +32,7 @@ module.exports = async (topic, user, repo) => {
|
||||||
|
|
||||||
const getReport = async (repoId, reportId, type, topic) => {
|
const getReport = async (repoId, reportId, type, topic) => {
|
||||||
const api = `https://api.codeclimate.com/v1/repos/${repoId}/${type}/${reportId}`
|
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) {
|
switch (topic) {
|
||||||
case 'issues':
|
case 'issues':
|
||||||
|
|
Ładowanie…
Reference in New Issue