Skip to content

Commit a00c7e4

Browse files
Merge pull request #115 from dipamsen/fix-commit
fix: commit transaction if file paths are same
2 parents e7d7c67 + 25719e5 commit a00c7e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/routing/handlers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ pub async fn edit(
201201
))
202202
}
203203
} else {
204+
// Commit the transaction
205+
tx.commit().await?;
204206
Ok(BackendResponse::ok(
205207
"Successfully updated paper details.".into(),
206208
new_qp.with_url(&state.env_vars)?,

0 commit comments

Comments
 (0)