Permalink
Browse files

Step 10.3: Implement countMessages method on server side

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 206f6af commit aa9701cfc1de48d197b6c85c7ea20c1162d81004
Showing with 3 additions and 0 deletions.
  1. +3 −0 api/server/methods.ts
View
@@ -90,5 +90,8 @@ Meteor.methods({
type: type
})
};
},
countMessages(): number {
return Messages.collection.find().count();
}
});

0 comments on commit aa9701c

Please sign in to comment.