Add missing safe() wrapper
This commit is contained in:
@@ -55,7 +55,7 @@ async function setTimeZone(req, res, next) {
|
||||
}
|
||||
|
||||
async function getSupportConfig(req, res, next) {
|
||||
const [error, supportConfig] = await settings.getSupportConfig();
|
||||
const [error, supportConfig] = await safe(settings.getSupportConfig());
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, supportConfig));
|
||||
|
||||
Reference in New Issue
Block a user