This commit is contained in:
David Arranz 2019-09-09 16:39:14 +02:00
parent 8ca7364c7f
commit eba2fce49b

View File

@ -60,10 +60,10 @@ async function loginWithPhone(req, res, next) {
if (_user) { if (_user) {
_user = _user.toJSON(); _user = _user.toJSON();
if (appVersion) { if (appVersion) {
if (user.app_version != appVersion) { if (_user.app_version != appVersion) {
const result = userService._updateAppVersionUser(user.id, appVersion); const result = userService._updateAppVersionUser(_user.id, appVersion);
console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result); console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result);
user.app_version = appVersion; _user.app_version = appVersion;
} }
} }