Skip to content

Commit

Permalink
Fix get all sources endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Jan 8, 2024
1 parent 399deeb commit c4ec61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/Services/SourceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public async Task<PagedList<Source>> ReadAll(SourceQueryStringParameters? parame
parameters ??= new SourceQueryStringParameters { };
var filter = ConstructFilter(parameters);

query = (DbSet<Source>)query.Where(filter);
var filteredQuery = query.Where(filter);

return await PagedList<Source>.ToPagedListAsync(
query,
filteredQuery,
parameters.PageNumber,
parameters.PageSize
);
Expand Down

0 comments on commit c4ec61b

Please sign in to comment.