Fix des utils cassés avec console.error
This commit is contained in:
@@ -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())
|
||||
})
|
||||
Reference in New Issue
Block a user