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 ResultPlacementDao on AppDatabase {
await (delete(resultPlacementTable)..where((rP) => rP.matchId.equals(matchId))).go();
}
Future<void> updateResultPlacement(String matchId, String userId, int placement) async {
Future<void> updateResultPlacementByMatchIdAndUserId(String matchId, String userId, int placement) async {
await (update(resultPlacementTable)..where((rP) => rP.matchId.equals(matchId))..where((rP) => rP.userId.equals(userId))).write(
ResultPlacementTableCompanion(placement: Value(placement)),
);