Update matches.service.ts
Deploy Iddaai Backend / build-and-deploy (push) Successful in 28s

This commit is contained in:
2026-05-05 10:47:00 +03:00
parent 62c797d299
commit 7a1cf14e2f
+3 -2
View File
@@ -215,8 +215,9 @@ export class MatchesService {
if (leagueId) { if (leagueId) {
where.leagueId = leagueId; where.leagueId = leagueId;
} else if (status === "LIVE" && this.topLeagueIds.length > 0) { } else if (this.topLeagueIds.length > 0) {
// Filter live matches by top leagues by default if no leagueId is provided // 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 }; where.leagueId = { in: this.topLeagueIds };
} }