Add missing safe()

This commit is contained in:
Girish Ramakrishnan
2021-08-23 15:44:23 -07:00
parent 77f5cb183b
commit 766357567a

View File

@@ -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;