This commit is contained in:
Kenneth Jao 2016-08-15 13:48:13 -04:00
commit a122d3b6aa

View File

@ -341,7 +341,7 @@ Meteor.methods({
pass === found.code &&
found.banned.indexOf(Meteor.userId()) === -1 &&
prof.classes.indexOf(change) === -1) {
classes.update({_id: found._id}, {$set: {subscribers: found.subscribers + 1}});
var current = Meteor.user().profile;
current.classes.push(change);
Meteor.users.update({