File tree Expand file tree Collapse file tree 5 files changed +4
-69
lines changed
AdminUI/LearningHub.Nhs.AdminUI
LearningHub.Nhs.Repository/Hierarchy Expand file tree Collapse file tree 5 files changed +4
-69
lines changed Original file line number Diff line number Diff line change 5353/AdminUI /LearningHub.Nhs.AdminUI /LearningHub.Nhs.AdminUI.csproj.user
5454/WebAPI /LearningHub.Nhs.API /LearningHub.Nhs.Api.csproj.user
5555/ReportAPI /LearningHub.Nhs.ReportApi /web.config
56+ /AdminUI /LearningHub.Nhs.AdminUI /web.config
57+ /LearningHub.Nhs.WebUI /web.config
58+ /WebAPI /LearningHub.Nhs.API /web.config
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -81,11 +81,6 @@ public async Task<List<CatalogueNodeVersion>> GetPublishedCatalogues()
8181 /// <returns>The <see cref="Task"/>.</returns>
8282 public IQueryable < CatalogueNodeVersion > GetPublishedCataloguesForUserAsync ( int userId )
8383 {
84- var communityCatalogue = this . DbContext . CatalogueNodeVersion . AsNoTracking ( )
85- . Include ( cnv => cnv . NodeVersion . Node )
86- . Where ( cnv => cnv . NodeVersion . VersionStatusEnum == VersionStatusEnum . Published
87- && cnv . NodeVersion . NodeId == 1 /* Community Catalogue */ ) ;
88-
8984 var cataloguesForUser = from cnv in this . DbContext . CatalogueNodeVersion . Include ( cnv => cnv . NodeVersion . Node ) . AsNoTracking ( )
9085 join nv in this . DbContext . NodeVersion . Where ( cnv => cnv . VersionStatusEnum == VersionStatusEnum . Published && ! cnv . Deleted ) // .Include(nv => nv.Node)
9186 on cnv . NodeVersionId equals nv . Id
@@ -99,7 +94,7 @@ join n in this.DbContext.Node.Where(x => !x.Deleted)
9994 on nv . Id equals n . CurrentNodeVersionId
10095 select cnv ;
10196
102- var returnedCatalogues = communityCatalogue . Union ( cataloguesForUser ) . Distinct ( )
97+ var returnedCatalogues = cataloguesForUser . Distinct ( )
10398 . OrderBy ( cnv => cnv . NodeVersion . NodeId != 1 )
10499 . ThenBy ( cnv => cnv . Name ) ;
105100
You can’t perform that action at this time.
0 commit comments