fitness: fix type errors, hydration warning, and add gym link
All checks were successful
CI / update (push) Successful in 2m0s

- Add exerciseId to WorkoutSession model (interface + schema)
- Fix button-in-button hydration warning in TemplateCard (use div)
- Expand FitnessChart dataset type to include all Chart.js properties
- Fix getTime type error in session update with proper cast
- Fix weight nullable type in profile stats with non-null assertion
- Fix $or query typing in templates list endpoint
- Re-add gym link on homepage pointing to /fitness
This commit is contained in:
2026-03-19 08:42:47 +01:00
parent 5890d3f3db
commit 48f381e215
6 changed files with 18 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ export interface ICompletedSet {
}
export interface ICompletedExercise {
exerciseId: string;
name: string;
sets: ICompletedSet[];
restTime?: number;
@@ -59,6 +60,11 @@ const CompletedSetSchema = new mongoose.Schema({
});
const CompletedExerciseSchema = new mongoose.Schema({
exerciseId: {
type: String,
required: true,
trim: true
},
name: {
type: String,
required: true,