fix(backend): preventOverwrite terug toegevoegd nadat ik het per ongeluk verwijderd heb
This commit is contained in:
parent
f7029ad25b
commit
034582e4c7
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue