mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
This commit is contained in:
commit
ed9ba1d765
1 changed files with 5 additions and 5 deletions
|
@ -492,10 +492,10 @@ Meteor.methods({
|
|||
|
||||
// ------------------------------ Callbacks ------------------------------ //
|
||||
|
||||
// run all post submit server callbacks on modifier object successively
|
||||
modifier = postAfterEditMethodCallbacks.reduce(function(result, currentFunction) {
|
||||
return currentFunction(result);
|
||||
}, modifier);
|
||||
// run all post after edit method callbacks successively
|
||||
postAfterEditMethodCallbacks.forEach(function(currentFunction) {
|
||||
currentFunction(modifier, postId);
|
||||
});
|
||||
|
||||
// ------------------------------ After Update ------------------------------ //
|
||||
|
||||
|
@ -557,7 +557,7 @@ Meteor.methods({
|
|||
Posts.update(postId, { $inc: { viewCount: 1 }});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
deletePostById: function(postId) {
|
||||
// remove post comments
|
||||
// if(!this.isSimulation) {
|
||||
|
|
Loading…
Add table
Reference in a new issue