Added Money System
This commit is contained in:
@@ -22,8 +22,10 @@ export async function GET(
|
||||
nom: true,
|
||||
prenom: true,
|
||||
telephone: true,
|
||||
telephoneSecondaire: true,
|
||||
email: true,
|
||||
adresse: true,
|
||||
forfait: true,
|
||||
},
|
||||
},
|
||||
chauffeur: {
|
||||
@@ -64,7 +66,7 @@ export async function PUT(
|
||||
}
|
||||
|
||||
const body = await request.json();
|
||||
const { date, adresseDepart, adresseArrivee, commentaire, statut, adherentId, chauffeurId } = body;
|
||||
const { date, adresseDepart, adresseArrivee, commentaire, instructions, statut, adherentId, chauffeurId } = body;
|
||||
|
||||
const trajet = await prisma.trajet.update({
|
||||
where: { id: params.id },
|
||||
@@ -73,6 +75,7 @@ export async function PUT(
|
||||
...(adresseDepart && { adresseDepart }),
|
||||
...(adresseArrivee && { adresseArrivee }),
|
||||
...(commentaire !== undefined && { commentaire }),
|
||||
...(instructions !== undefined && { instructions }),
|
||||
...(statut && { statut }),
|
||||
...(adherentId && { adherentId }),
|
||||
...(chauffeurId !== undefined && { chauffeurId }),
|
||||
@@ -84,7 +87,9 @@ export async function PUT(
|
||||
nom: true,
|
||||
prenom: true,
|
||||
telephone: true,
|
||||
telephoneSecondaire: true,
|
||||
email: true,
|
||||
forfait: true,
|
||||
},
|
||||
},
|
||||
chauffeur: {
|
||||
|
||||
Reference in New Issue
Block a user