notification email on student unlinking

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