Skip to content

Commit

Permalink
Fix scheduled snippets appearing at home
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Dec 9, 2024
1 parent a92af06 commit 9d99e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/page/homePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export default class HomePage extends Page {
}

get featuredSnippets() {
const newSnippets = Snippet.scope('listed', 'byNew').slice(
const newSnippets = Snippet.scope('listed', 'published', 'byNew').slice(
0,
settings.home.newSnippetCards
);

const topSnippets = Snippet.scope('listed', 'byRanking')
const topSnippets = Snippet.scope('listed', 'published', 'byRanking')
.slice(0, settings.home.topSnippetCards * 5)
.shuffle();

Expand Down

0 comments on commit 9d99e9a

Please sign in to comment.