Commit c4a26cae authored by Omar Elkadi's avatar Omar Elkadi
Browse files

nothing

parent 04fc3a1b
...@@ -48,7 +48,7 @@ export class patientRoutes { ...@@ -48,7 +48,7 @@ export class patientRoutes {
// parse JSON to Objects // parse JSON to Objects
var patientStudent = JSON.parse(body.patientStudent); var patientStudent = JSON.parse(body.patientStudent);
var sickNote = JSON.parse(body.SickNote); var sickNote = JSON.parse(body.SickNote);
const path = "./uploads/reports/" + patientStudent.MatrikelNumber + ".json"; const path = "./uploads/reports/" + patientStudent.MatrikelNumber + ".json";
var sickReport = { var sickReport = {
patientStudent, patientStudent,
...@@ -72,10 +72,10 @@ export class patientRoutes { ...@@ -72,10 +72,10 @@ export class patientRoutes {
// create the collection if not exist // create the collection if not exist
try{ try{
await db.createCollection( "Students",{} ) await db.createCollection( "Students",{} )
console.log("Collection Student is created") console.log("new collection Student is created")
} }
catch(error){ 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 // define a collection and insert a new record
try { try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment