notification email on student unlinking

parent dd8702c4
Showing with 1 additions and 1 deletions
......@@ -244,7 +244,7 @@ module.exports = {
})
.spread(function (sup, stuSups) {
if (!stuSups || stuSups.length == 0)
throw new Error("No students");
return callback(null, []);
async.eachSeries(stuSups, function(stuSup, next_cb) {
// set current method and instruction if any
Student.findOne(stuSup.student.id)
......
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 sign in to comment