summaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-18 15:33:02 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-18 15:33:02 -0500
commit27f74d8c366be675e7ab64ca746496a66b3cf024 (patch)
tree7bee8fee0b8753d1c3974e33bcb155b509bae100 /server/src/main.rs
parent4512c5ead9406206de32e37490b7a4ac792d93bf (diff)
Add bidding from webapp
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index a8429ec..5b81fc0 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -172,7 +172,7 @@ async fn post_bid(
) -> Result<Json<()>, BridgeError> {
info!("Getting table state for {id:}");
let jnl = DbJournal::new(extension.db.clone(), id);
- let mut table = play::Table::new_or_replay(jnl).await?;
+ let mut table = play::Table::replay(jnl).await?;
if !table.game().is_bidding() {
return Err(BridgeError::InvalidRequest(
"Posting a bid requires that the game is in the bidding phase"