Add phone and membership request modal

This commit is contained in:
Michael committed 2026-07-14 12:58:40 +02:00
1 parent d7376c055c
commit 93f0187706
6 files changed
+110 -56

No files matched your search

+3 -3
View File
@@ -83,10 +83,10 @@ publicRouter.post(
validate(demandeSchema),
async (req, res, next) => {
try {
const { nom, fonction, entreprise, email } = req.data;
const { nom, fonction, entreprise, email, tel } = req.data;
await query(
'INSERT INTO demandes_adhesion (nom, fonction, entreprise, email) VALUES ($1, $2, $3, $4)',
[nom, fonction, entreprise, email]
'INSERT INTO demandes_adhesion (nom, fonction, entreprise, email, tel) VALUES ($1, $2, $3, $4, $5)',
[nom, fonction, entreprise, email, tel]
);
res.status(201).json({ ok: true });
} catch (err) {