fitness: fix type errors, hydration warning, and add gym link
All checks were successful
CI / update (push) Successful in 2m0s
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user