Skip to content

Commit

Permalink
Update ListPageSegmentQuery.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 3, 2024
1 parent f0fc9f2 commit b364de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moonglade.Core/PageFeature/ListPageSegmentQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public record ListPageSegmentQuery : IRequest<List<PageSegment>>;

public class ListPageSegmentQueryHandler(MoongladeRepository<PageEntity> repo) : IRequestHandler<ListPageSegmentQuery, List<PageSegment>>
{
public Task<List<PageSegment>> Handle(ListPageSegmentQuery request, CancellationToken ct) =>
public Task<List<PageSegment>> Handle(ListPageSegmentQuery request, CancellationToken ct) =>
repo.ListAsync(new PageSegmentSpec(), ct);
}

0 comments on commit b364de9

Please sign in to comment.