- EvaluationModel.removeGroup(cid, (err2,ret) => {
- if (!!err)
- return cb(err,{});
- // 3) remove course (with its students)
- CourseModel.remove(cid, cb);
- });
+ db.evaluations.remove(
+ { cid: cid },
+ (err2,ret) => {
+ if (!!err)
+ return cb(err,{});
+ // 3) remove course (with its students)
+ CourseModel.remove(cid, cb);
+ }
+ );