Skip to content

Commit

Permalink
Hiding leagues (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs authored Apr 28, 2024
1 parent 60dcc7c commit f8d7cd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scores-src/src/server/leagueRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function createLeaguesRouter() {
const result = await DB.query(
`SELECT RAW l FROM _default l
WHERE meta(l).id LIKE 'League/%'
AND (hidden IS MISSING OR hidden = false)
ORDER BY MILLIS(l.startDate)`,
{ scanConsistency: QueryScanConsistency.RequestPlus }
);
Expand Down

0 comments on commit f8d7cd1

Please sign in to comment.