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; } }