This commit is contained in:
David Arranz 2024-08-29 18:15:59 +02:00
parent f358eb38ad
commit 6321df3f85

View File

@ -328,6 +328,7 @@ async function getOrCreateUser(req, res, next) {
//creamos o recuperamos el usuario teniendo en cuenta que pude venir por APP o WEB
//si viene por web se tendra en cuenta el email y si viene por APP el phone para buscar
try {
console.log('CHAPUZAAAAAAAAAA>>>');
//CHAPUZA PARA PODER DAR DE ALTA USUARIOS CON EL MISMO CORREO ELECTRONICO, PERO DISTINTO NOMBRE Y APELLIDO.
if (req.user)
//? 'app' : 'web', //En el caso de tener ya usuario viene por APP sino viene por web