Skip to content

Commit

Permalink
feat: update import children (#598)
Browse files Browse the repository at this point in the history
* feat: remove special caracters for documents on upload

* fix: update import existing children
  • Loading branch information
FredericNumericite authored Nov 29, 2023
1 parent 43c7573 commit be7c4b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion formulaire/pages/api/enfants/import/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { withSentry } from "@sentry/nextjs";
import type { NextApiHandler } from "next";
import prisma from "../../../../src/lib/prismaClient";
import { getServerSession } from "next-auth";
import { authOptions } from '../../auth/[...nextauth]'
import { authOptions } from "../../auth/[...nextauth]";

const handler: NextApiHandler = async (req, res) => {
const session = await getServerSession(req, res, authOptions);
Expand Down Expand Up @@ -110,6 +110,7 @@ const post: NextApiHandler = async (req, res) => {
nom: data.nom,
prenom: data.prenom,
dateNaissance: data.dateNaissance,
dossierId: data.dossierId,
},
data: data,
});
Expand Down

0 comments on commit be7c4b3

Please sign in to comment.