1- import connector from " #models/databaseUtil" ;
1+ import connector from ' #models/databaseUtil' ;
22
3- connector . set ( " debug" , true ) ;
3+ connector . set ( ' debug' , true ) ;
44const moduleSchema = {
55 modNo : { type : Number , required : true } ,
66 moduleName : { type : String , required : true } ,
@@ -10,7 +10,7 @@ const moduleSchema = {
1010 cognitiveLevels : [ { type : String , required : true } ] ,
1111} ;
1212
13- const moduleModel = new connector . model ( " Module" , moduleSchema ) ;
13+ const moduleModel = new connector . model ( ' Module' , moduleSchema ) ;
1414
1515async function remove ( filter ) {
1616 const res = await moduleModel . findOneAndDelete ( filter ) ;
@@ -23,7 +23,7 @@ async function create(
2323 moduleOutcome ,
2424 moduleContents ,
2525 hrsPerModule ,
26- cognitiveLevels ,
26+ cognitiveLevels
2727) {
2828 const module = new moduleModel ( {
2929 modNo,
@@ -50,7 +50,7 @@ async function update(filter, updateObject) {
5050}
5151
5252async function test ( ) {
53- await create ( 1 , " Maths" , " abc" , " xyz" , 5 , " abc" ) ;
53+ await create ( 1 , ' Maths' , ' abc' , ' xyz' , 5 , ' abc' ) ;
5454 const reading = await read ( { } ) ;
5555 console . log ( reading ) ;
5656}
0 commit comments