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: {