This commit is contained in:
Gwendal Roué committed 2021-01-28 08:10:29 +01:00
1 parent 1cd88114ec
commit 6512e7bf61
1 file changed
+1 -1
+1 -1
View File
@@ -258,7 +258,7 @@ extension AppDatabase {
/// Inserts a player. When the method returns, the
/// player id is set to the newly inserted id.
func insertPlayer(_ player: inout Player) throws {
try dbQueue.write { db in
try dbWriter.write { db in
try db.execute(literal: """
INSERT INTO player (name, score)
VALUES (\(player.name), \(player.score))