diff --git a/crates/lib/mysql_queries/src/queries/model_weights/update_weight.rs b/crates/lib/mysql_queries/src/queries/model_weights/update_weight.rs index b0d48e1035..ab36d88f11 100644 --- a/crates/lib/mysql_queries/src/queries/model_weights/update_weight.rs +++ b/crates/lib/mysql_queries/src/queries/model_weights/update_weight.rs @@ -14,7 +14,7 @@ pub struct UpdateWeightArgs<'a> { pub mysql_pool: &'a MySqlPool, } -pub async fn update_voice(args: UpdateWeightArgs<'_>) -> AnyhowResult<()> { +pub async fn update_weights(args: UpdateWeightArgs<'_>) -> AnyhowResult<()> { let mut transaction = args.mysql_pool.begin().await?; let query_result = sqlx @@ -44,7 +44,7 @@ pub async fn update_voice(args: UpdateWeightArgs<'_>) -> AnyhowResult<()> { Ok(_) => Ok(()), Err(err) => { transaction.rollback().await?; - Err(anyhow!("zs voice update error: {:?}", err)) + Err(anyhow!("weights update error: {:?}", err)) } } }