Initial commit
This commit is contained in:
parent
9ed5089508
commit
78e0e82449
16 changed files with 317 additions and 15 deletions
|
|
@ -3,6 +3,7 @@ import { UpdateInfo } from "../imports/api/updateInfo";
|
|||
import { MScripts } from "../imports/api/mScripts";
|
||||
import { UserInfo } from "../imports/api/userInfo";
|
||||
import { Roels } from "meteor/roles";
|
||||
import { Workouts } from "../imports/api/workouts";
|
||||
|
||||
Meteor.publish("SystemConfig", function() {
|
||||
try {
|
||||
|
|
@ -34,3 +35,14 @@ Meteor.publish(null, function () {
|
|||
}
|
||||
this.ready();
|
||||
});
|
||||
|
||||
Meteor.publish("myWorkoutRoutines", function () {
|
||||
try {
|
||||
if (this.userId) {
|
||||
return Workouts.find({ "addedBy": this.userId, "routineActive": true });
|
||||
}
|
||||
} catch(error) {
|
||||
console.log(" ERROR in pulling workout routines: " + error);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue