Skip to content

Commit

Permalink
Update Home.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 14, 2024
1 parent c16610c commit 1a34ea2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MyApp/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
protected override void OnInitialized()
{
using var db = HostContext.AppHost.GetDbConnection();
Posts = db.Select<Post>()
Posts = db.Select(db.From<Post>()
.OrderByDescending(x => x.Score)
.Take(25)
.ToList();
.Take(50));
}
}

0 comments on commit 1a34ea2

Please sign in to comment.