merde
This commit is contained in:
parent
ab0d97cff6
commit
0eca942f38
4 changed files with 14 additions and 3 deletions
|
|
@ -80,6 +80,7 @@ class MatchRestController(private val matchService: MatchService) {
|
||||||
// Mettre à jour un match
|
// Mettre à jour un match
|
||||||
@PutMapping("/update-match/{id}")
|
@PutMapping("/update-match/{id}")
|
||||||
fun updateMatch(@PathVariable id: Long, @RequestBody match: MatchBean): ResponseEntity<Int> {
|
fun updateMatch(@PathVariable id: Long, @RequestBody match: MatchBean): ResponseEntity<Int> {
|
||||||
|
println(match)
|
||||||
return ResponseEntity.ok(matchService.updateMatch(id, match))
|
return ResponseEntity.ok(matchService.updateMatch(id, match))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,9 +131,19 @@ export class MatchesIdComponent implements OnInit {
|
||||||
|
|
||||||
updateScores(): void {
|
updateScores(): void {
|
||||||
if (this.match) {
|
if (this.match) {
|
||||||
|
const stateEnum = parseMatchState(this.match.state as unknown as string);
|
||||||
this.matchService.updateMatch(this.match.id, {
|
this.matchService.updateMatch(this.match.id, {
|
||||||
|
id: this.match.id,
|
||||||
|
refereeID: this.match.refereeID,
|
||||||
|
player1ID: this.match.player1ID,
|
||||||
score1: this.match.score1,
|
score1: this.match.score1,
|
||||||
|
player2ID: this.match.player2ID,
|
||||||
score2: this.match.score2,
|
score2: this.match.score2,
|
||||||
|
country: this.match.country,
|
||||||
|
city: this.match.city,
|
||||||
|
weapon: this.match.weapon,
|
||||||
|
date: this.match.date,
|
||||||
|
state: stateEnum,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#FileLock
|
#FileLock
|
||||||
#Tue Jun 03 12:13:33 CEST 2025
|
#Tue Jun 03 14:41:05 CEST 2025
|
||||||
hostName=ExostFlash
|
hostName=ExostFlash
|
||||||
id=1973548313a73b09e15c7ad67f0a2a90c7d955c292d
|
id=19735cf427f6fe0909b5135c83899ed841def93aa0c
|
||||||
method=file
|
method=file
|
||||||
server=192.167.2.100\:58591
|
server=192.167.2.100\:64492
|
||||||
|
|
|
||||||
BIN
db.mv.db
BIN
db.mv.db
Binary file not shown.
Loading…
Add table
Reference in a new issue