solving problem with chat emails

parent 54bdf0f0
...@@ -45,7 +45,7 @@ module.exports = { ...@@ -45,7 +45,7 @@ module.exports = {
var emails = []; var emails = [];
for (var i=0; i<stusups.length; i++) { for (var i=0; i<stusups.length; i++) {
if (stusups[i].supervisor.id !== params.id_sup) if (stusups[i].supervisor.id !== params.id_sup)
emails.append(stusups[i].supervisor.email); emails.push(stusups[i].supervisor.email);
} }
// Email body // Email body
......
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