test: harden match live static contract
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user