test: harden match live static contract

This commit is contained in:
hajimi
2026-06-21 11:40:49 +08:00
parent dbdb418e15
commit b133fd36ee
2 changed files with 19 additions and 0 deletions
@@ -9,6 +9,7 @@ class MatchLiveService
{
public static function syncLegacyLiveUrl(int $matchId): void
{
// MatchLive uses SoftDelete, so default queries only return non-deleted rows.
$row = MatchLive::where('match_id', $matchId)
->order('create_time', 'asc')
->order('id', 'asc')
@@ -22,6 +23,7 @@ class MatchLiveService
public static function getLiveListForApi(int $matchId): array
{
// MatchLive uses SoftDelete, so default queries only return non-deleted rows.
$rows = MatchLive::where('match_id', $matchId)
->order('create_time', 'asc')
->order('id', 'asc')