appstore and support: async'ify
This commit is contained in:
@@ -58,12 +58,11 @@ function setTimeZone(req, res, next) {
|
||||
});
|
||||
}
|
||||
|
||||
function getSupportConfig(req, res, next) {
|
||||
settings.getSupportConfig(function (error, supportConfig) {
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
async function getSupportConfig(req, res, next) {
|
||||
const [error, supportConfig] = await settings.getSupportConfig();
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, supportConfig));
|
||||
});
|
||||
next(new HttpSuccess(200, supportConfig));
|
||||
}
|
||||
|
||||
function getBackupConfig(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user