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) {
_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;
}
}