Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Meteor.methods({
- 'tasks.insert'(text) {
- check(text, String);
- // Make sure the user is logged in before inserting a task
- if (! this.userId) {
- throw new Meteor.Error('not-authorized');
- }
- }
- tasksInsert(text) {
- // ...
- }
Add Comment
Please, Sign In to add comment