From b244c66b1f96db0a0f41fedb6034f1a68888148a Mon Sep 17 00:00:00 2001
From: miguel
Date: Tue, 28 Oct 2025 14:28:31 -0600
Subject: [PATCH 1/3] mensaje personalizado por tipo de evento
---
.../cuestionario_respondido.service.ts | 5 +++--
src/emails/registro-evento.ts | 11 ++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/cuestionario_respondido/cuestionario_respondido.service.ts b/src/cuestionario_respondido/cuestionario_respondido.service.ts
index 47c120a..f54ce6c 100644
--- a/src/cuestionario_respondido/cuestionario_respondido.service.ts
+++ b/src/cuestionario_respondido/cuestionario_respondido.service.ts
@@ -116,7 +116,7 @@ export class CuestionarioRespondidoService {
participante.id_participante,
cuestionario.evento.id_evento,
cuestionario.id_cuestionario,
- cuestionario.fecha_fin
+ cuestionario.fecha_fin,
);
// Generar código QR con el token
@@ -136,6 +136,7 @@ export class CuestionarioRespondidoService {
nombreForm: cuestionario.nombre_form,
nombreEvento: cuestionario.evento?.nombre_evento,
correo: participante.correo,
+ tipoEvento: cuestionario.evento.tipo_evento,
fechaRegistro: new Date().toLocaleString(),
fechaInicioEvento: cuestionario.evento?.fecha_inicio
? new Date(
@@ -341,7 +342,7 @@ export class CuestionarioRespondidoService {
participante.id_participante,
cuestionario.evento.id_evento,
cuestionario.id_cuestionario,
- cuestionario.fecha_fin
+ cuestionario.fecha_fin,
);
qrBuffer = await QRCode.toBuffer(qrToken);
diff --git a/src/emails/registro-evento.ts b/src/emails/registro-evento.ts
index bfbe999..b2ff615 100644
--- a/src/emails/registro-evento.ts
+++ b/src/emails/registro-evento.ts
@@ -1,3 +1,10 @@
+const message = {
+ 'Cultural / Artístico':
+ 'Favor de presentar este código QR (en tu celular o impreso) en la mesa de atención de la Sala Emma Rizo 10 minutos antes de la hora de acceso reservada.',
+ 'Feria / Expo':
+ 'Favor de presentar el código QR en cualquier stand de la feria, para recibir tu constancia de asistencia.',
+};
+
export function generarHtmlCorreoAsistencia({
nombreForm,
nombreEvento,
@@ -5,10 +12,12 @@ export function generarHtmlCorreoAsistencia({
fechaRegistro,
fechaInicioEvento,
fechaFinEvento,
+ tipoEvento,
}: {
nombreForm: string;
nombreEvento: string;
correo: string;
+ tipoEvento: string;
fechaRegistro: string;
fechaInicioEvento?: string;
fechaFinEvento?: string;
@@ -34,7 +43,7 @@ export function generarHtmlCorreoAsistencia({
- Favor de presentar este código QR (en tu celular o impreso) en las mesas de juegos el día del evento, para participar por tu premio.
+ ${message[tipoEvento]}
--
2.43.0
From e1ddf84166b3c07bdb54fd61fc97c4bfd65c1623 Mon Sep 17 00:00:00 2001
From: miguel
Date: Tue, 28 Oct 2025 14:28:47 -0600
Subject: [PATCH 2/3] mensaje personalizado por tipo de evento
---
src/emails/registro-evento.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/emails/registro-evento.ts b/src/emails/registro-evento.ts
index b2ff615..cc776d8 100644
--- a/src/emails/registro-evento.ts
+++ b/src/emails/registro-evento.ts
@@ -43,7 +43,7 @@ export function generarHtmlCorreoAsistencia({
- ${message[tipoEvento]}
+ ${message[tipoEvento] ? message[tipoEvento] : 'Favor de presentar este código QR (en tu celular o impreso) en las mesas de juegos el día del evento, para participar por tu premio.'}
--
2.43.0
From 6e82e7fdfdeb22f12cb6307b2752857ccb2ffafe Mon Sep 17 00:00:00 2001
From: miguel
Date: Tue, 28 Oct 2025 14:29:50 -0600
Subject: [PATCH 3/3] mensaje personalizado por tipo de evento
---
src/cuestionario_respondido/cuestionario_respondido.service.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cuestionario_respondido/cuestionario_respondido.service.ts b/src/cuestionario_respondido/cuestionario_respondido.service.ts
index f54ce6c..b2b74ad 100644
--- a/src/cuestionario_respondido/cuestionario_respondido.service.ts
+++ b/src/cuestionario_respondido/cuestionario_respondido.service.ts
@@ -366,6 +366,7 @@ export class CuestionarioRespondidoService {
nombreForm: cuestionario.nombre_form,
nombreEvento: cuestionario.evento?.nombre_evento,
correo: participante.correo,
+ tipoEvento: cuestionario.evento.tipo_evento,
fechaRegistro: new Date().toLocaleString(),
fechaInicioEvento: cuestionario.evento?.fecha_inicio
? new Date(cuestionario.evento.fecha_inicio).toLocaleString()
--
2.43.0