more EE backports

This commit is contained in:
Phil Hughes 2018-01-29 11:42:27 +00:00
parent e0bc7e5f9c
commit 06cd08ebad
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 10 additions and 2 deletions

View File

@ -39,7 +39,11 @@ const Api = {
per_page: 20,
}, options),
})
.then(({ data }) => callback(data));
.then(({ data }) => {
callback(data);
return data;
});
},
// Return namespaces list. Filtered by query
@ -70,7 +74,11 @@ const Api = {
return axios.get(url, {
params: Object.assign(defaults, options),
})
.then(({ data }) => callback(data));
.then(({ data }) => {
callback(data);
return data;
});
},
// Return single project