Skip to content

Commit

Permalink
log json
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Oct 9, 2024
1 parent feaf395 commit 59bc3d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion formulaire/src/fetching/sync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { DossierData, EnfantData } from "./dossiers";

const sendDossier = async (dossier: DossierData, demandeur: DemandeurData, societeProduction: SocieteProduction, enfants: EnfantData[]) => {
const url = "/api/sync/out/dossiers";
console.log("SENDING DOSSIER", JSON.stringify({dossier: dossier, demandeur: demandeur, societeProduction: societeProduction, enfants: enfants}))
const fetching = await fetch(url, {
body: JSON.stringify({dossier: dossier, demandeur: demandeur, societeProduction: societeProduction, enfants: enfants}),
method: "POST",
Expand All @@ -18,4 +19,4 @@ const sendDossier = async (dossier: DossierData, demandeur: DemandeurData, socie

export {
sendDossier
}
}

0 comments on commit 59bc3d9

Please sign in to comment.