diff --git a/hourglass/server/main.js b/hourglass/server/main.js index 49593c2..2105b55 100644 --- a/hourglass/server/main.js +++ b/hourglass/server/main.js @@ -374,7 +374,7 @@ Meteor.methods({ if (classes.findOne({ _id: change }).admin != Meteor.userId()) { - profile.classes.splice(index, 1); + current = profile.classes.splice(index, 1); Meteor.users.update({ _id: Meteor.userId() }, {