diff --git a/Dfe.Academies.Api.Infrastructure/Repositories/TrustRepository.cs b/Dfe.Academies.Api.Infrastructure/Repositories/TrustRepository.cs index 159527c61..54ff4e0d6 100644 --- a/Dfe.Academies.Api.Infrastructure/Repositories/TrustRepository.cs +++ b/Dfe.Academies.Api.Infrastructure/Repositories/TrustRepository.cs @@ -60,7 +60,7 @@ public async Task> 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());