Adding functionality for Tasks.

This commit is contained in:
Brian McGonagill 2022-09-05 15:30:20 -05:00
parent 947abfb76f
commit 56b27d6b05
13 changed files with 234 additions and 9 deletions

View file

@ -104,4 +104,12 @@ Meteor.publish("allTasks", function() {
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});
Meteor.publish("myTasks", function() {
try {
return TaskItems.find({ assignedToId: this.userId });
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});