Skip to content

Commit

Permalink
only open trusts on search
Browse files Browse the repository at this point in the history
  • Loading branch information
paullocknimble committed Nov 13, 2023
1 parent 7ef71f2 commit c66cae0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task<List<Trust>> GetTrustsByUkprns(string[] ukprns, CancellationTo
&& (
trust.TrustType.Name == "Single-academy trust" ||
trust.TrustType.Name == "Multi-academy trust"
))
) && trust.TrustStatus == "Open")
.OrderBy(trust => trust.GroupUID);

return (await filteredGroups.Skip((page - 1) * count).Take(count).ToListAsync(cancellationToken).ConfigureAwait(false), filteredGroups.Count());
Expand Down

0 comments on commit c66cae0

Please sign in to comment.