notification email on student unlinking

parent a2af7adb
......@@ -474,6 +474,9 @@ module.exports = {
return [stupStup, Student.findOne(req.params.id_stu).populate('license')];
.spread((stuSup, student) => {
//
// Remove relationship
//
stuSup.destroy();
//
......@@ -498,6 +501,7 @@ module.exports = {
.then(() => {})
.catch((err) => {});
}
//
// Broadcast event
//
......
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