diff --git a/api/controllers/TargetController.js b/api/controllers/TargetController.js index 318b999..75f2b38 100644 --- a/api/controllers/TargetController.js +++ b/api/controllers/TargetController.js @@ -2,6 +2,7 @@ module.exports = { show: function (req, res) { res.view('pages/temp', { email: req.user.email + }); } -}; +}; \ No newline at end of file diff --git a/api/controllers/UserController.js b/api/controllers/UserController.js index 352543a..3efcaff 100644 --- a/api/controllers/UserController.js +++ b/api/controllers/UserController.js @@ -37,4 +37,4 @@ module.exports = { me: function (req, res) { res.json(req.user); } -}; +}; \ No newline at end of file diff --git a/api/helpers/passport.js b/api/helpers/passport.js index 172e9ff..5fe980e 100644 --- a/api/helpers/passport.js +++ b/api/helpers/passport.js @@ -168,4 +168,4 @@ function PassportHelper () { this.getPassport = function () { return passport; }; -} +} \ No newline at end of file diff --git a/api/hooks/passport/index.js b/api/hooks/passport/index.js index 8465ba3..5a64aa3 100644 --- a/api/hooks/passport/index.js +++ b/api/hooks/passport/index.js @@ -1,5 +1,6 @@ let passportHook = sails.hooks.passport; + if (!passportHook) { passportHook = function (sails) { return { @@ -12,4 +13,4 @@ if (!passportHook) { }; } -module.exports = passportHook; +module.exports = passportHook; \ No newline at end of file diff --git a/api/models/User.js b/api/models/User.js index 170fdc0..cc78b78 100644 --- a/api/models/User.js +++ b/api/models/User.js @@ -33,4 +33,4 @@ module.exports = { } -}; +}; \ No newline at end of file diff --git a/package.json b/package.json index 16306bf..a02fb9c 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", - "@sailshq/eslint": "^4.19.3", "babel-loader": "^8.0.4", "babel-preset-es2015": "^6.24.1", "css-loader": "^1.0.1",