Fix pro_state field name mismatch in /auth/me response
Flutter reads 'professional_state' but Prisma returns 'pro_state'. Add professional_state alias in me() response so proState is read correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5380a894b1
commit
053f2d0b56
@@ -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<string | null> {
|
||||
|
||||
Reference in New Issue
Block a user