Skip to content

Commit

Permalink
Step 10.3: Implement countMessages method on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 13, 2017
1 parent c2d1815 commit f73f552
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/server/methods.ts
Expand Up @@ -90,5 +90,8 @@ Meteor.methods({
type: type
})
};
},
countMessages(): number {
return Messages.collection.find().count();
}
});

0 comments on commit f73f552

Please sign in to comment.