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 ResultScoreDao on AppDatabase {
await (delete(resultScoreTable)..where((rS) => rS.matchId.equals(matchId))).go();
}
Future<void> updateResultScore(String matchId, String userId, int score) async {
Future<void> updateResultScoreByMatchIdAndUserId(String matchId, String userId, int score) async {
await (update(resultScoreTable)..where((rS) => rS.matchId.equals(matchId))..where((rS) => rS.userId.equals(userId))).write(
ResultScoreTableCompanion(score: Value(score)),
);