Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Feb 18, 2024
1 parent 0cba73a commit 1152358
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public static Task<Paging<TEntity>> PaginatedAsync<TEntity>(this IQueryable<TEnt
var page = query.Page;
var pageSize = Math.Max(Math.Min(query.PageSize, maxPageSize), 5);
var filters = query.Filters ?? Enumerable.Empty<Filtering>();
var sortings = query.Sotings is null || query.Sotings.Count == 0
var sortings = query.Sortings is null || query.Sortings.Count == 0
? defaultSorting == null ? Array.Empty<Sorting>() : new List<Sorting> { defaultSorting }
: query.Sotings;
: query.Sortings;

return queryable
.WithFilter(filters)
Expand Down

0 comments on commit 1152358

Please sign in to comment.