Refine horse race pool and quick entry

This commit is contained in:
2026-04-11 16:27:04 +08:00
parent b02a789264
commit 37c175289c
6 changed files with 53 additions and 4 deletions
+1
View File
@@ -59,6 +59,7 @@ class HorseRaceOpened implements ShouldBroadcastNow
return [
'race_id' => $this->race->id,
'horses' => $this->race->horses,
'total_pool' => $this->race->total_pool,
'bet_opens_at' => $this->race->bet_opens_at->toIso8601String(),
'bet_closes_at' => $this->race->bet_closes_at->toIso8601String(),
'bet_seconds' => (int) now()->diffInSeconds($this->race->bet_closes_at),
+1 -1
View File
@@ -70,7 +70,7 @@ class HorseRaceSettled implements ShouldBroadcastNow
'race_id' => $this->race->id,
'winner_horse_id' => $this->race->winner_horse_id,
'winner_name' => $winnerName,
'total_pool' => $this->race->total_pool,
'total_pool' => (int) $this->race->total_pool,
'settled_at' => $this->race->settled_at?->toIso8601String(),
];
}