Add phone and membership request modal
This commit is contained in:
1 parent
d7376c055c
commit
93f0187706
6 files changed
+110
-56
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user