Skip to content

Commit

Permalink
Fix double player insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Jul 14, 2024
1 parent cc1219d commit 1754585
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/players.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ async fn route_player_create(
.await?;
transaction.commit().await?;

pg_client
.query(&create_player_statement, &[&uuid, &nickname])
.await?;

Ok(HttpResponse::Ok().json(CreatePlayerResponse {
uuid: uuid.to_string(),
token: token.to_string(),
Expand Down

0 comments on commit 1754585

Please sign in to comment.