diff --git a/server/routes/api/v1/patients/update.js b/server/routes/api/v1/patients/update.js index be979f3..a667e3b 100644 --- a/server/routes/api/v1/patients/update.js +++ b/server/routes/api/v1/patients/update.js @@ -236,7 +236,7 @@ export default async function (fastify, _opts) { const nullFields = Object.entries(newContactData).filter( ([_, value]) => value === null, ); - + const existingContact = await tx.patient.findUnique({ where: { id }, include: {