From 2a7a10ad9b2f373e37994d208d197835fd13495b Mon Sep 17 00:00:00 2001 From: evenegas Date: Thu, 2 Oct 2025 10:31:42 -0600 Subject: [PATCH] plantilla --- src/cuestionario/cuestionario.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cuestionario/cuestionario.service.ts b/src/cuestionario/cuestionario.service.ts index ae6a217..eab913d 100644 --- a/src/cuestionario/cuestionario.service.ts +++ b/src/cuestionario/cuestionario.service.ts @@ -134,7 +134,7 @@ export class CuestionarioService { for (const qRow of cuestionarios) { - const plantilla = qRow.getCell(9).value ? Number(row.getCell(9).value) : null; + const plantilla = qRow.getCell(9).value ? Number(qRow.getCell(9).value) : null; if (plantilla && PLANTILLA_MAP[plantilla]) { const fecha_inicio = new Date(qRow.getCell(4).value as string); @@ -143,7 +143,9 @@ export class CuestionarioService { const plantillaId = PLANTILLA_MAP[plantilla]; const base = PLANTILLAS.find(p => p.id === plantillaId); if (!base) throw new Error(`Plantilla ${plantillaId} no encontrada`); - + console.log("ID de la plantilla: ", plantillaId); + console.log("Base de la plantilla: ", base); + const createDto: CreateEventoWithCuestionarioDto = { evento: eventoDto, cuestionario: {