Fix des utils cassés avec console.error

This commit is contained in:
Zachary Guénot
2023-05-23 23:14:22 +02:00
parent 1d9432c0aa
commit a90960edfb
8 changed files with 7 additions and 15 deletions

View File

@@ -7,8 +7,7 @@ module.exports = getUserInfo = (async (client_id, access_token, type) => {
'Client-Id': client_id
}
}).then(response => {
//console.log(response.data)
if (type === 'login') return response.data.data[0].login
if (type === 'id') return response.data.data[0].id
}).catch(error => { console.log(error.response.data) })
}).catch(console.error())
})