Run Prettier JS (#6795)

This commit is contained in:
Diamond Lewis
2020-07-13 13:06:52 -05:00
committed by GitHub
parent ebb0727793
commit e6a6354b29
47 changed files with 313 additions and 329 deletions

View File

@@ -7,7 +7,7 @@ export class GlobalConfigRouter extends PromiseRouter {
getGlobalConfig(req) {
return req.config.database
.find('_GlobalConfig', { objectId: '1' }, { limit: 1 })
.then(results => {
.then((results) => {
if (results.length != 1) {
// If there is no config in the database - return empty config.
return { response: { params: {} } };
@@ -51,14 +51,14 @@ export class GlobalConfigRouter extends PromiseRouter {
}
mountRoutes() {
this.route('GET', '/config', req => {
this.route('GET', '/config', (req) => {
return this.getGlobalConfig(req);
});
this.route(
'PUT',
'/config',
middleware.promiseEnforceMasterKeyAccess,
req => {
(req) => {
return this.updateGlobalConfig(req);
}
);