test: enforce exact match live snippets

This commit is contained in:
hajimi
2026-06-21 11:43:29 +08:00
parent b133fd36ee
commit 8d528ba5fe
2 changed files with 34 additions and 19 deletions
@@ -9,8 +9,8 @@ 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)
->whereNull('delete_time')
->order('create_time', 'asc')
->order('id', 'asc')
->find();
@@ -23,8 +23,8 @@ 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)
->whereNull('delete_time')
->order('create_time', 'asc')
->order('id', 'asc')
->select()