Initial commit

This commit is contained in:
Brian McGonagill 2026-02-03 16:03:34 -06:00
parent 9ed5089508
commit 78e0e82449
16 changed files with 317 additions and 15 deletions

View file

@ -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);
}
});