Refactoring

This commit is contained in:
2025-11-21 00:10:29 +01:00
parent 6055eb63a8
commit b21ca54672
5 changed files with 32 additions and 34 deletions

View File

@@ -24,7 +24,7 @@ class PlayerGameDao extends DatabaseAccessor<AppDatabase>
/// Retrieves a list of [Player]s associated with the given [gameId].
/// Returns null if no players are found.
Future<List<Player>?> getPlayersByGameId({required String gameId}) async {
Future<List<Player>?> getPlayersOfGame({required String gameId}) async {
final result = await (select(
playerGameTable,
)..where((p) => p.gameId.equals(gameId))).get();