From 74be21eb4e5ea2a62a5d0eccc9ab46c0b3e3af84 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 12 Jul 2026 20:02:10 -0500 Subject: [PATCH] fix: use 'as any[]' for notIn array to avoid readonly tuple type error Co-Authored-By: Claude Sonnet 4.6 --- backend/src/services/services.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({