Skip to content

Commit

Permalink
Merge pull request #115 from dipamsen/fix-commit
Browse files Browse the repository at this point in the history
fix: commit transaction if file paths are same
  • Loading branch information
harshkhandeparkar authored Feb 10, 2025
2 parents e7d7c67 + 25719e5 commit a00c7e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/routing/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ pub async fn edit(
))
}
} else {
// Commit the transaction
tx.commit().await?;
Ok(BackendResponse::ok(
"Successfully updated paper details.".into(),
new_qp.with_url(&state.env_vars)?,
Expand Down

0 comments on commit a00c7e4

Please sign in to comment.