Show email/phone in pro detail and improve RETHUS section
- Backend: include email and phone in users select for professionals - Admin detail page: RETHUS section shows cedula+code with copy buttons Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f845350911
commit
efb48e017f
@@ -15,7 +15,7 @@ export class ProfessionalsService {
|
||||
skip,
|
||||
take: limit,
|
||||
include: {
|
||||
users: { select: { id: true, name: true, picture: true, city: true } },
|
||||
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true } },
|
||||
schedules: true,
|
||||
specializations: true,
|
||||
payment_methods: true,
|
||||
@@ -31,7 +31,7 @@ export class ProfessionalsService {
|
||||
let prof = await this.prisma.professionals.findUnique({
|
||||
where: { id },
|
||||
include: {
|
||||
users: { select: { id: true, name: true, picture: true, city: true } },
|
||||
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true } },
|
||||
schedules: { orderBy: { day_of_week: 'asc' } },
|
||||
specializations: true,
|
||||
payment_methods: true,
|
||||
@@ -41,7 +41,7 @@ export class ProfessionalsService {
|
||||
prof = await this.prisma.professionals.findUnique({
|
||||
where: { user_id: id },
|
||||
include: {
|
||||
users: { select: { id: true, name: true, picture: true, city: true } },
|
||||
users: { select: { id: true, name: true, email: true, phone: true, picture: true, city: true } },
|
||||
schedules: { orderBy: { day_of_week: 'asc' } },
|
||||
specializations: true,
|
||||
payment_methods: true,
|
||||
|
||||
Reference in New Issue
Block a user