Skip to content

Commit

Permalink
set comment admin pagesize to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 4, 2023
1 parent 2464de6 commit e5f258b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Pages/Admin/Comments.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class CommentsModel : PageModel

public async Task OnGet(int pageIndex = 1)
{
const int pageSize = 10;
const int pageSize = 5;
var comments = await _mediator.Send(new GetCommentsQuery(pageSize, pageIndex));
var count = await _mediator.Send(new CountCommentsQuery());
CommentDetailedItems = new(comments, pageIndex, pageSize, count);
Expand Down

0 comments on commit e5f258b

Please sign in to comment.