Moved getGroupMatches + Tests
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 39s
Pull Request Pipeline / lint (pull_request) Successful in 44s

This commit is contained in:
2026-03-09 21:27:05 +01:00
parent 4e98dcde41
commit 611033b5cd
5 changed files with 51 additions and 32 deletions

View File

@@ -197,7 +197,7 @@ class _CreateGroupViewState extends State<CreateGroupView> {
/// obsolete. For each such match, the group association is removed by setting
/// its [groupId] to null.
Future<void> deleteObsoleteMatchGroupRelations() async {
final groupMatches = await db.groupDao.getGroupMatches(
final groupMatches = await db.matchDao.getGroupMatches(
groupId: widget.groupToEdit!.id,
);

View File

@@ -248,7 +248,7 @@ class _GroupDetailViewState extends State<GroupDetailView> {
/// Loads statistics for this group
Future<void> _loadStatistics() async {
isLoading = true;
final groupMatches = await db.groupDao.getGroupMatches(groupId: _group.id);
final groupMatches = await db.matchDao.getGroupMatches(groupId: _group.id);
setState(() {
totalMatches = groupMatches.length;