diff --git a/backend/src/services/services.service.ts b/backend/src/services/services.service.ts index cd6c370..ed82b07 100644 --- a/backend/src/services/services.service.ts +++ b/backend/src/services/services.service.ts @@ -195,7 +195,7 @@ export class ServicesService { async findByProfessional(userId: string, page = 1, limit = 20) { const prof = await this.prisma.professionals.findUnique({ where: { user_id: userId } }); if (!prof) throw new NotFoundException('No eres un profesional'); - const where = { professional_id: prof.id, status: { notIn: ['self_booked', 'denied', 'cancelled'] as const } }; + const where = { professional_id: prof.id, status: { notIn: ['self_booked', 'denied', 'cancelled'] as any[] } }; const skip = (page - 1) * limit; const [data, total] = await Promise.all([ this.prisma.services.findMany({