Skip to content

Commit aa9701c

Browse files
dotansimhadarkbasic
authored andcommitted
Step 10.3: Implement countMessages method on server side
1 parent 206f6af commit aa9701c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/server/methods.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,8 @@ Meteor.methods({
9090
type: type
9191
})
9292
};
93+
},
94+
countMessages(): number {
95+
return Messages.collection.find().count();
9396
}
9497
});

0 commit comments

Comments
 (0)