diff --git a/src/cuestionario/cuestionario.service.ts b/src/cuestionario/cuestionario.service.ts index eab913d..88d6e15 100644 --- a/src/cuestionario/cuestionario.service.ts +++ b/src/cuestionario/cuestionario.service.ts @@ -133,9 +133,14 @@ export class CuestionarioService { ?.filter(qRow => qRow.getCell(2).value === row.getCell(1).value) || []; for (const qRow of cuestionarios) { + + const plantilla = qRow.getCell(9).value ? Number(qRow.getCell(9).value) : null; - + console.log("Valor de la plantilla: ", plantilla); + if (plantilla !== null && plantilla !== undefined) { + console.log("Tipo de la plantilla: ", PLANTILLA_MAP[plantilla]); + } if (plantilla && PLANTILLA_MAP[plantilla]) { const fecha_inicio = new Date(qRow.getCell(4).value as string); const fecha_fin = new Date(qRow.getCell(5).value as string);