This commit is contained in:
David Arranz 2019-09-09 16:43:26 +02:00
parent eef10573b6
commit 54b1e8923a

View File

@ -62,7 +62,7 @@ async function loginWithPhone(req, res, next) {
_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._updateLastLoginAndVersionUser(_user.id, appVersion);
console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result); console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result);
_user.app_version = appVersion; _user.app_version = appVersion;
} }