Added Money System
This commit is contained in:
@@ -54,7 +54,7 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
const body = await request.json();
|
||||
const { nom, prenom, dateNaissance, adresse, email, telephone, situation, prescripteur, facturation, commentaire, telephoneSecondaire, instructions } = body;
|
||||
const { nom, prenom, dateNaissance, adresse, email, telephone, situation, prescripteur, facturation, forfait, commentaire, telephoneSecondaire, instructions } = body;
|
||||
|
||||
if (!nom || !prenom || !dateNaissance || !adresse || !email || !telephone) {
|
||||
return NextResponse.json(
|
||||
@@ -74,6 +74,7 @@ export async function POST(request: NextRequest) {
|
||||
situation: situation || null,
|
||||
prescripteur: prescripteur || null,
|
||||
facturation: facturation || null,
|
||||
forfait: forfait || null,
|
||||
commentaire: commentaire || null,
|
||||
telephoneSecondaire: telephoneSecondaire || null,
|
||||
instructions: instructions || null,
|
||||
|
||||
Reference in New Issue
Block a user