diff --git a/crates/services/fitness/src/lib.rs b/crates/services/fitness/src/lib.rs index af9a128a08..0913c233f8 100644 --- a/crates/services/fitness/src/lib.rs +++ b/crates/services/fitness/src/lib.rs @@ -681,11 +681,6 @@ impl FitnessService { { return Err(Error::new("Exercise with the new name already exists.")); } - Exercise::update_many() - .col_expr(exercise::Column::Name, Expr::value(input.update.id.clone())) - .filter(exercise::Column::Id.eq(input.old_id.clone())) - .exec(&self.0.db) - .await?; } for image in old_exercise.attributes.internal_images { if let StoredUrl::S3(key) = image { @@ -694,7 +689,6 @@ impl FitnessService { } self.create_custom_exercise(&user_id, input.update.clone()) .await?; - schedule_user_for_workout_revision(&user_id, &self.0).await?; Ok(true) } diff --git a/crates/utils/database/src/lib.rs b/crates/utils/database/src/lib.rs index 493cbda58e..2f8b2a9e65 100644 --- a/crates/utils/database/src/lib.rs +++ b/crates/utils/database/src/lib.rs @@ -722,7 +722,7 @@ pub async fn calculate_user_activities_and_summary( { continue; } - activity.workout_exercises.push(db_ex.id.clone()); + activity.workout_exercises.push(db_ex.name.clone()); activity.workout_muscles.extend(db_ex.muscles.clone()); activity.workout_equipments.extend(db_ex.equipment.clone()); }