Skip to content

Commit

Permalink
Fixed condition in db query
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 29, 2023
1 parent f8279c2 commit 97c9e14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chan/ws_manager_chan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ pub async fn start_ws_manager(db: Database) -> Result<WsManagerChan, String> {
for lobby_account in lobby_accounts {
let mut lobby = match query!(&mut tx, Lobby)
.condition(
Lobby::F.uuid.equals(lobby_account.uuid.as_ref()),
Lobby::F
.uuid
.equals(lobby_account.lobby.key().as_ref()),
)
.one()
.await
Expand Down

0 comments on commit 97c9e14

Please sign in to comment.