show gender on admin professional detail page

Add gender: true to users select in findById() (both lookup paths)
and render it in the personal data card in the admin frontend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-12 19:03:02 -05:00
co-authored by Claude Sonnet 4.6
parent 2180e0480c
commit afbf4d537e
2 changed files with 7 additions and 3 deletions
@@ -46,7 +46,7 @@ export class ProfessionalsService {
let prof = await this.prisma.professionals.findUnique({
where: { id },
include: {
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true } },
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true, gender: true } },
schedules: { orderBy: { day_of_week: 'asc' } },
specializations: true,
payment_methods: true,
@@ -56,7 +56,7 @@ export class ProfessionalsService {
prof = await this.prisma.professionals.findUnique({
where: { user_id: id },
include: {
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true } },
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true, gender: true } },
schedules: { orderBy: { day_of_week: 'asc' } },
specializations: true,
payment_methods: true,