Merge branch 'master' of https://github.com/ksjdragon/hourglass
This commit is contained in:
commit
a122d3b6aa
@ -341,7 +341,7 @@ Meteor.methods({
|
|||||||
pass === found.code &&
|
pass === found.code &&
|
||||||
found.banned.indexOf(Meteor.userId()) === -1 &&
|
found.banned.indexOf(Meteor.userId()) === -1 &&
|
||||||
prof.classes.indexOf(change) === -1) {
|
prof.classes.indexOf(change) === -1) {
|
||||||
|
classes.update({_id: found._id}, {$set: {subscribers: found.subscribers + 1}});
|
||||||
var current = Meteor.user().profile;
|
var current = Meteor.user().profile;
|
||||||
current.classes.push(change);
|
current.classes.push(change);
|
||||||
Meteor.users.update({
|
Meteor.users.update({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user