From 7a1cf14e2fb461a3c747bedc8f71968bc8c9c3b6 Mon Sep 17 00:00:00 2001 From: Fahri Can Date: Tue, 5 May 2026 10:47:00 +0300 Subject: [PATCH] Update matches.service.ts --- src/modules/matches/matches.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/matches/matches.service.ts b/src/modules/matches/matches.service.ts index deb7e9d..2c37b20 100755 --- a/src/modules/matches/matches.service.ts +++ b/src/modules/matches/matches.service.ts @@ -215,8 +215,9 @@ export class MatchesService { if (leagueId) { where.leagueId = leagueId; - } else if (status === "LIVE" && this.topLeagueIds.length > 0) { - // Filter live matches by top leagues by default if no leagueId is provided + } else if (this.topLeagueIds.length > 0) { + // Always filter by top leagues when no specific leagueId is requested + // This ensures match list is consistent with the active leagues sidebar where.leagueId = { in: this.topLeagueIds }; }