From 58522390df3933dfc5d2a075af82df31209c8365 Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Mon, 15 Aug 2016 10:42:35 -0400 Subject: [PATCH] fixed 0 subscribers bug --- hourglass/server/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hourglass/server/main.js b/hourglass/server/main.js index 346831e..ec61bf5 100644 --- a/hourglass/server/main.js +++ b/hourglass/server/main.js @@ -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({