Send params in data

This commit is contained in:
Andre Medeiros 2018-10-17 14:28:40 -04:00 committed by Pascal Precht
parent eb412c026b
commit edb8c99af3
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 2 deletions

View File

@ -27,10 +27,11 @@ function request(type, path, params = {}) {
headers: {
'X-Embark-Request-Hash': requestHash,
'X-Embark-Cnonce': cnonce
}
},
data: params
}
return axios(req, params)
return axios(req)
.then((response) => {
return (response.data && response.data.error) ? {error: response.data.error} : {response, error: null};
}).catch((error) => {