From 53471fdafb823458ab811a33b0bd0cba5a85cb22 Mon Sep 17 00:00:00 2001 From: Vuthy Date: Sat, 23 Nov 2019 05:46:40 +0700 Subject: [PATCH] Small Bug when Login --- lib/oauth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();