Skip to content

Commit

Permalink
Small Bug when Login
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuthy authored Nov 22, 2019
1 parent 7129974 commit 53471fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 53471fd

Please sign in to comment.