diff --git a/FencerJudgeBack/src/main/kotlin/fr/teamflash/fencerjudgeback/restControllers/MatchRestController.kt b/FencerJudgeBack/src/main/kotlin/fr/teamflash/fencerjudgeback/restControllers/MatchRestController.kt index c8bfaf2..4755ccb 100644 --- a/FencerJudgeBack/src/main/kotlin/fr/teamflash/fencerjudgeback/restControllers/MatchRestController.kt +++ b/FencerJudgeBack/src/main/kotlin/fr/teamflash/fencerjudgeback/restControllers/MatchRestController.kt @@ -80,6 +80,7 @@ class MatchRestController(private val matchService: MatchService) { // Mettre à jour un match @PutMapping("/update-match/{id}") fun updateMatch(@PathVariable id: Long, @RequestBody match: MatchBean): ResponseEntity { + println(match) return ResponseEntity.ok(matchService.updateMatch(id, match)) } diff --git a/FencerJudgeFront/src/app/components/match/matches-id/matches-id.component.ts b/FencerJudgeFront/src/app/components/match/matches-id/matches-id.component.ts index f226bae..16a8dd5 100644 --- a/FencerJudgeFront/src/app/components/match/matches-id/matches-id.component.ts +++ b/FencerJudgeFront/src/app/components/match/matches-id/matches-id.component.ts @@ -131,9 +131,19 @@ export class MatchesIdComponent implements OnInit { updateScores(): void { if (this.match) { + const stateEnum = parseMatchState(this.match.state as unknown as string); this.matchService.updateMatch(this.match.id, { + id: this.match.id, + refereeID: this.match.refereeID, + player1ID: this.match.player1ID, score1: this.match.score1, + player2ID: this.match.player2ID, score2: this.match.score2, + country: this.match.country, + city: this.match.city, + weapon: this.match.weapon, + date: this.match.date, + state: stateEnum, }); } } diff --git a/db.lock.db b/db.lock.db index 528aa42..48b24ff 100644 --- a/db.lock.db +++ b/db.lock.db @@ -1,6 +1,6 @@ #FileLock -#Tue Jun 03 12:13:33 CEST 2025 +#Tue Jun 03 14:41:05 CEST 2025 hostName=ExostFlash -id=1973548313a73b09e15c7ad67f0a2a90c7d955c292d +id=19735cf427f6fe0909b5135c83899ed841def93aa0c method=file -server=192.167.2.100\:58591 +server=192.167.2.100\:64492 diff --git a/db.mv.db b/db.mv.db index da25e4f..4b898f0 100644 Binary files a/db.mv.db and b/db.mv.db differ