rename SQL update methods to include 'ById'

This commit is contained in:
2025-06-29 21:25:05 +02:00
parent be33f2c3d8
commit 5a33bdc24d
6 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ extension ResultWinDao on AppDatabase {
await (delete(resultWinTable)..where((rW) => rW.matchId.equals(matchId))).go();
}
Future<void> updateResultWin(String matchId, String newWinnerId) async {
Future<void> updateResultWinByMatchIdAndUserId(String matchId, String newWinnerId) async {
await (update(resultWinTable)..where((rW) => rW.matchId.equals(matchId))).write(
ResultWinTableCompanion(winnerId: Value(newWinnerId)),
);