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

@@ -21,7 +21,7 @@ class GroupGameDao extends DatabaseAccessor<AppDatabase>
/// Retrieves the [Group] associated with the given [gameId].
/// Returns `null` if no group is found.
Future<Group?> getGroupByGameId({required String gameId}) async {
Future<Group?> getGroupOfGame({required String gameId}) async {
final result = await (select(
groupGameTable,
)..where((g) => g.gameId.equals(gameId))).getSingleOrNull();