This commit is contained in:
ExostFlash 2025-06-03 14:55:12 +02:00
parent ab0d97cff6
commit 0eca942f38
4 changed files with 14 additions and 3 deletions

View file

@ -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<Int> {
println(match)
return ResponseEntity.ok(matchService.updateMatch(id, match))
}

View file

@ -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,
});
}
}

View file

@ -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

BIN
db.mv.db

Binary file not shown.