Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Step 10.3: Implement countMessages method on server side
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
api/server/methods.ts
|
@@ -90,5 +90,8 @@ Meteor.methods({ |
|
|
type: type |
|
|
}) |
|
|
}; |
|
|
}, |
|
|
countMessages(): number { |
|
|
return Messages.collection.find().count(); |
|
|
} |
|
|
}); |