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