Fix for #159
This commit is contained in:
Tarang Patel 2013-11-11 20:53:02 +02:00
parent 0bed5aa609
commit fdab645c15

View file

@ -133,7 +133,9 @@ Meteor.methods({
// NOTE: actually, keep comments afer all
// decrement post count
var post = Posts.findOne({_id: postId});
Meteor.users.update({_id: post.userId}, {$inc: {postCount: -1}});
Posts.remove(postId);
}
});