From eba2fce49bd4c70e925e5a9e25b2aedb277e9eba Mon Sep 17 00:00:00 2001 From: david Date: Mon, 9 Sep 2019 16:39:14 +0200 Subject: [PATCH] a --- modules/auth/auth.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index 1241423..1091608 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -60,10 +60,10 @@ async function loginWithPhone(req, res, next) { if (_user) { _user = _user.toJSON(); if (appVersion) { - if (user.app_version != appVersion) { - const result = userService._updateAppVersionUser(user.id, appVersion); + if (_user.app_version != appVersion) { + const result = userService._updateAppVersionUser(_user.id, appVersion); console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result); - user.app_version = appVersion; + _user.app_version = appVersion; } }