summaryrefslogtreecommitdiff
path: root/lib/web/auth/utils.js
diff options
context:
space:
mode:
authorPhilip Molares2021-02-15 09:42:51 +0100
committerPhilip Molares2021-02-15 12:15:14 +0100
commit136d895d155f28c2e75b3af206549acaa2a354ed (patch)
treead80595f5dd94a7ac63bc1481943ae7b356ddb17 /lib/web/auth/utils.js
parentb0a45bdf9c531d93a2462c09d58b2e9e703a0a66 (diff)
Linter: Fix all lint errors
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Diffstat (limited to 'lib/web/auth/utils.js')
-rw-r--r--lib/web/auth/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/auth/utils.js b/lib/web/auth/utils.js
index fb69f08c..bb69f15f 100644
--- a/lib/web/auth/utils.js
+++ b/lib/web/auth/utils.js
@@ -4,7 +4,7 @@ const models = require('../../models')
const logger = require('../../logger')
exports.passportGeneralCallback = function callback (accessToken, refreshToken, profile, done) {
- var stringifiedProfile = JSON.stringify(profile)
+ const stringifiedProfile = JSON.stringify(profile)
models.User.findOrCreate({
where: {
profileid: profile.id.toString()
@@ -16,7 +16,7 @@ exports.passportGeneralCallback = function callback (accessToken, refreshToken,
}
}).spread(function (user, created) {
if (user) {
- var needSave = false
+ let needSave = false
if (user.profile !== stringifiedProfile) {
user.profile = stringifiedProfile
needSave = true