fix: use 'as any[]' for notIn array to avoid readonly tuple type error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-12 20:02:10 -05:00
co-authored by Claude Sonnet 4.6
parent 7d481b3451
commit 74be21eb4e
+1 -1
View File
@@ -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({