Add missing safe()
This commit is contained in:
@@ -62,7 +62,7 @@ var apps = require('../apps.js'),
|
||||
async function load(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.id, 'string');
|
||||
|
||||
const [error, result] = await apps.get(req.params.id);
|
||||
const [error, result] = await safe(apps.get(req.params.id));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
req.resource = result;
|
||||
|
||||
Reference in New Issue
Block a user