diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index 80df0b3..1790baf 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -104,7 +104,7 @@ export class AuthService { }, }); if (!user) throw new UnauthorizedException('Usuario no encontrado'); - return user; + return { ...user, professional_state: user.pro_state }; } async getProfessionalId(userId: string): Promise {