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 darkbasic committed Oct 16, 2017
1 parent 206f6af commit aa9701c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/server/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.