Skip to content

Commit bea8c8a

Browse files
shuebner-zeissjaredcnance
authored andcommitted
realize query when there is no paging in EntityResourceService.ApplyPageQueryAsync
1 parent ee51cec commit bea8c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Services/EntityResourceService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private async Task<IEnumerable<T>> ApplyPageQueryAsync(IQueryable<T> entities)
165165
{
166166
var pageManager = _jsonApiContext.PageManager;
167167
if (!pageManager.IsPaginated)
168-
return entities;
168+
return await _entities.ToListAsync(entities);
169169

170170
_logger?.LogInformation($"Applying paging query. Fetching page {pageManager.CurrentPage} with {pageManager.PageSize} entities");
171171

0 commit comments

Comments
 (0)