This commit is contained in:
David Arranz 2019-09-09 16:50:03 +02:00
parent 54b1e8923a
commit db922a39da

View File

@ -147,8 +147,8 @@ console.log('CREAMOS EL USUARIO EN NUESTRO SISTEMA', newUser);
newUser = newUser.toJSON();
newUser = cleanAdminData(newUser);
if (appVersion) {
if (user.app_version != appVersion) {
const result = userService._updateLastLoginAndVersionUser(user.id, appVersion);
if (newUser.app_version != appVersion) {
const result = userService._updateLastLoginAndVersionUser(newUser.id, appVersion);
console.log('PRUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBA>>>> ', result);
newUser.app_version = appVersion;
}