diff --git a/server/src/routes/patientRoutes.ts b/server/src/routes/patientRoutes.ts index 74f4fdde02bc18d000f6435b0ed4b7e96dc07354..e4256f03c2b6afad91700ef19e4d08112c5309c4 100644 --- a/server/src/routes/patientRoutes.ts +++ b/server/src/routes/patientRoutes.ts @@ -48,7 +48,7 @@ export class patientRoutes { // parse JSON to Objects var patientStudent = JSON.parse(body.patientStudent); var sickNote = JSON.parse(body.SickNote); - + const path = "./uploads/reports/" + patientStudent.MatrikelNumber + ".json"; var sickReport = { patientStudent, @@ -72,10 +72,10 @@ export class patientRoutes { // create the collection if not exist try{ await db.createCollection( "Students",{} ) - console.log("Collection Student is created") + console.log("new collection Student is created") } catch(error){ - console.log("Collection already exists, so it didnot be created") + console.log("Collection is already exists, so it would not be created") } // define a collection and insert a new record try {