replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
+4 -7
View File
@@ -7,9 +7,9 @@ const router = express.Router();
router.get('/', async (req, res, next) => {
try {
await SetupService.isAvailable();
res.json({installed: false});
res.json({ installed: false });
} catch (e) {
res.json({installed: true});
res.json({ installed: true });
}
});
@@ -20,13 +20,10 @@ router.post('/', async (req, res, next) => {
return next(e);
}
const {
settings,
user: {email, password, username}
} = req.body;
const { settings, user: { email, password, username } } = req.body;
try {
await SetupService.setup({settings, user: {email, password, username}});
await SetupService.setup({ settings, user: { email, password, username } });
res.status(204).end();
} catch (err) {
return next(err);