Fix error creating a table
This commit is contained in:
@ -43,7 +43,7 @@ final class TableManagement {
|
||||
try await table.create(on: database)
|
||||
player.$table.id = table.id
|
||||
try await player.update(on: database)
|
||||
let waitingTable = WaitingTable(newTable: table)
|
||||
let waitingTable = WaitingTable(newTable: table, user: player)
|
||||
self.tables[waitingTable.id] = waitingTable
|
||||
return waitingTable.tableInfo(forPlayer: player.name)
|
||||
}
|
||||
|
Reference in New Issue
Block a user