Making improvements

This commit is contained in:
Brian McGonagill 2026-02-04 17:05:47 -06:00
parent 78e0e82449
commit dd7e4a4933
11 changed files with 349 additions and 52 deletions

View file

@ -4,6 +4,7 @@ import { MScripts } from "../imports/api/mScripts";
import { UserInfo } from "../imports/api/userInfo";
import { Roels } from "meteor/roles";
import { Workouts } from "../imports/api/workouts";
import { WorkoutLog } from "../imports/api/workoutLog";
Meteor.publish("SystemConfig", function() {
try {
@ -44,5 +45,14 @@ Meteor.publish("myWorkoutRoutines", function () {
} catch(error) {
console.log(" ERROR in pulling workout routines: " + error);
}
});
Meteor.publish("myWorkoutLog", function () {
try {
if (this.userId) {
return WorkoutLog.find({ "addedBy": this.userId, "exerciseActive": true });
}
} catch(error) {
console.log(" ERROR in pulling workout routines: " + error);
}
});