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 -5
View File
@@ -4,18 +4,17 @@ const authentication = require('../middleware/authentication');
// Session data does not automatically attach to websocket req objects.
// This middleware code looks for a user in the session and, if it exists,
// attaches it to the graph req.
const deserializeUser = (req) => {
const deserializeUser = req => {
return new Promise((resolve, reject) => {
// Parse the cookies (if they exist?).
cookieParser(req, null, (err) => {
cookieParser(req, null, err => {
if (err) {
return reject(err);
}
// This uses the authentication connect middleware to establish the
// current user.
authentication(req, null, (err) => {
authentication(req, null, err => {
if (err) {
return reject(err);
}
@@ -28,5 +27,5 @@ const deserializeUser = (req) => {
};
module.exports = {
deserializeUser
deserializeUser,
};