diff --git a/lib/oauth2.js b/lib/oauth2.js index c9ac893..c0069ed 100644 --- a/lib/oauth2.js +++ b/lib/oauth2.js @@ -105,7 +105,7 @@ router.get( req.session.passport.user.apartment = userApartment; if (userImgUrl == null || userImgUrl != req.user.image) { - pool.query("UPDATE account SET img_url = $1 WHERE email = $2;", [req.user.image, req.user.email], function (err, res) { + pool.query("UPDATE account SET img_url = $1 WHERE email = $2;", [req.user.image, req.user.email], function (err, result1) { if (err) { res.send(err)} else { next();