From db922a39da3aa4228b7f0b21390e402e3367295f Mon Sep 17 00:00:00 2001 From: david Date: Mon, 9 Sep 2019 16:50:03 +0200 Subject: [PATCH] a --- modules/auth/auth.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index 88de4e7..e636a97 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -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; }