Add missing safe() wrapper

This commit is contained in:
Johannes Zellner
2021-08-23 17:47:58 +02:00
parent 37c2b5d739
commit 3a0e882d33

View File

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