fix(backend): preventOverwrite terug toegevoegd nadat ik het per ongeluk verwijderd heb

This commit is contained in:
Gerald Schmittinger 2025-04-19 17:06:13 +02:00
parent f7029ad25b
commit 034582e4c7
3 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ export async function createStudent(userData: StudentDTO): Promise<StudentDTO> {
const studentRepository = getStudentRepository();
const newStudent = mapToStudent(userData);
await studentRepository.save(newStudent);
await studentRepository.save(newStudent, { preventOverwrite: true });
return userData;
}