Added missing await
This commit is contained in:
@@ -51,7 +51,7 @@ class PlayerGroupDao extends DatabaseAccessor<AppDatabase>
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (await db.playerDao.playerExists(playerId: player.id) == false) {
|
if (await db.playerDao.playerExists(playerId: player.id) == false) {
|
||||||
db.playerDao.addPlayer(player: player);
|
await db.playerDao.addPlayer(player: player);
|
||||||
}
|
}
|
||||||
|
|
||||||
await into(playerGroupTable).insert(
|
await into(playerGroupTable).insert(
|
||||||
|
|||||||
Reference in New Issue
Block a user