mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Fix function name issues
This commit is contained in:
1 parent
5893753e35
commit
ccbc89fd3e
1 file changed
+2
-2
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user