From e601c8d979932811fe44c16b4838b9a137332579 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Thu, 29 Aug 2024 18:46:05 +0200 Subject: [PATCH] . --- modules/auth/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index f210c29..23f697c 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -332,7 +332,7 @@ async function getOrCreateUser(req, res, next) { //CHAPUZA PARA PODER DAR DE ALTA USUARIOS CON EL MISMO CORREO ELECTRONICO, PERO DISTINTO NOMBRE Y APELLIDO. if (req.user) { - if (req.user == {} ) + if (_.isEmpty(req.user)) dataUser.userResult = await userService._getOrCreateUserWEB(dataUser); else //? 'app' : 'web', //En el caso de tener ya usuario viene por APP sino viene por web