Skip to content

Commit

Permalink
commit Organisation member transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
KavikaPalletenne committed Nov 14, 2024
1 parent 1be68de commit 264ad63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/server/src/handler/organisation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl OrganisationHandler {
) -> Result<impl IntoResponse, ChaosError> {
Organisation::remove_admin(id, request_body.user_id, &mut transaction.tx).await?;

transaction.tx.commit().await?;
Ok((
StatusCode::OK,
"Successfully removed member from organisation",
Expand All @@ -112,6 +113,7 @@ impl OrganisationHandler {
) -> Result<impl IntoResponse, ChaosError> {
Organisation::remove_member(id, request_body.user_id, &mut transaction.tx).await?;

transaction.tx.commit().await?;
Ok((
StatusCode::OK,
"Successfully removed member from organisation",
Expand Down

0 comments on commit 264ad63

Please sign in to comment.