diff --git a/server/routers.ts b/server/routers.ts index 4a7d1d9..f54eb5e 100644 --- a/server/routers.ts +++ b/server/routers.ts @@ -923,7 +923,7 @@ export const appRouter = router({ return { success: true }; }), - sendGroupEmail: adminProcedure.input(z.object({ sequenceId: z.number(), type: z.enum(['teaser', 'rappel', 'rappel_j1']) })).mutation(async ({ input }) => { + sendGroupEmail: adminProcedure.input(z.object({ sequenceId: z.number(), type: z.enum(['teaser', 'rappel1', 'rappel2', 'rappel3', 'rappel4', 'rappel5', 'rappel6']) })).mutation(async ({ input }) => { const sequence = await db.getSequenceById(input.sequenceId); if (!sequence) { throw new TRPCError({ code: 'NOT_FOUND', message: 'Séquence introuvable' }); @@ -983,7 +983,7 @@ export const appRouter = router({ emailPreview: adminProcedure .input(z.object({ sequenceId: z.number(), - type: z.enum(['teaser', 'rappel', 'rappel_j1']), + type: z.enum(['teaser', 'rappel1', 'rappel2', 'rappel3', 'rappel4', 'rappel5', 'rappel6']), apprenantId: z.number().optional(), })) .query(async ({ input }) => { diff --git a/todo.md b/todo.md index 47788d7..7e5a0b0 100644 --- a/todo.md +++ b/todo.md @@ -942,3 +942,10 @@ - [x] Remplacer le gris par un bleu légèrement soutenu (bg-blue-50/70) - [x] Déployer sur le VPS + +## Correction erreur validation création rappel + +- [x] Identifier la source de l'erreur de validation templateType +- [x] Corriger la validation pour accepter rappel1-6 au lieu de rappel/rappelJ1 +- [x] Tester la création d'un rappel +- [x] Déployer sur le VPS