mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
parent
0bed5aa609
commit
fdab645c15
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue