Skip to content

Commit

Permalink
Merge pull request #135 from back4app/enable-admin-default
Browse files Browse the repository at this point in the history
fix: Get webhost response
  • Loading branch information
paivaric authored Feb 21, 2019
2 parents a64f05a + 99ebe80 commit 1255d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ParseApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export default class ParseApp {

getWebHost() {
let path = '/parse-app/' + this.slug + '/webhost';
return axios.get(path).then(({ data }) => data.webhost).catch(err => {
return axios.get(path).then(({ data }) => data.hostSettings).catch(err => {
throw err.response && err.response.data && err.response.data.error ? err.response.data.error : err
})
}
Expand Down

0 comments on commit 1255d11

Please sign in to comment.