diff --git a/.gitignore b/.gitignore index 5b49128..2b17195 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ backend/DEPLOY backend/ROLLBACK backend/RESTART backend/.env.production +init-production.sql diff --git a/admin/si.zip b/admin/si.zip new file mode 100644 index 0000000..2c41024 Binary files /dev/null and b/admin/si.zip differ diff --git a/backend/backen.zip b/backend/backen.zip new file mode 100644 index 0000000..72efd17 Binary files /dev/null and b/backend/backen.zip differ diff --git a/backend/src/enrollment/enrollment.controller.ts b/backend/src/enrollment/enrollment.controller.ts index 98a65f8..6d09ba4 100644 --- a/backend/src/enrollment/enrollment.controller.ts +++ b/backend/src/enrollment/enrollment.controller.ts @@ -55,7 +55,8 @@ export class EnrollmentPagesController { @Get('c/:slug') async enroll(@Param('slug') slug: string, @Res() res: Response) { const store = await this.enrollment.findStore(slug); - if (!store || store.status === 'DRAFT') return html(res, notFoundPage(), 404); + // Brouillon : l'affichette peut déjà être imprimée, on affiche « indisponible » plutôt qu'un 404. + if (!store) return html(res, notFoundPage(), 404); if (store.status !== 'ACTIVE' || !store.cardDesign) return html(res, unavailablePage(store)); html(res, enrollPage(store)); }