test: enforce exact match live snippets
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user