Send memory settings on addon status

This commit is contained in:
Johannes Zellner
2018-11-20 16:53:27 +01:00
parent a13f0706b4
commit 329cc80933
2 changed files with 44 additions and 17 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ function getAll(req, res, next) {
function get(req, res, next) {
assert.strictEqual(typeof req.params.addon, 'string');
addons.getStatus(req.params.addon, function (error, result) {
addons.getAddon(req.params.addon, function (error, result) {
if (error && error.reason === AddonsError.NOT_FOUND) return next(new HttpError(404, 'No such addon'));
if (error) return next(new HttpError(500, error));