Fix error creating a table

This commit is contained in:
Christoph Hagen
2022-10-12 22:02:01 +02:00
parent 30abe56325
commit 454bd204b8
2 changed files with 3 additions and 4 deletions

View File

@ -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)
}