File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ BEGIN
150150 LEFT JOIN ( SELECT DISTINCT CatalogueNodeId
151151 FROM [hub].[RoleUserGroupView] rug JOIN hub .UserUserGroup uug ON rug .UserGroupId = uug .UserGroupId
152152 WHERE rug .ScopeTypeId = 1 and rug .RoleId in (1 ,2 ,3 ) and uug .Deleted = 0 and uug .UserId = @userId) auth ON n .Id = auth .CatalogueNodeId
153- LEFT JOIN resources .ResourceVersionRatingSummary rs ON rs .ResourceVersionId = rv .Id
153+ INNER JOIN resources .ResourceVersionRatingSummary rs ON rs .ResourceVersionId = rv .Id
154154 WHERE rv .VersionStatusId = 2
155155 ORDER BY rvrs .AverageRating DESC , rvrs .RatingCount DESC , rv .Title
156156
@@ -207,7 +207,7 @@ BEGIN
207207 LEFT JOIN ( SELECT DISTINCT CatalogueNodeId
208208 FROM [hub].[RoleUserGroupView] rug JOIN hub .UserUserGroup uug ON rug .UserGroupId = uug .UserGroupId
209209 WHERE rug .ScopeTypeId = 1 and rug .RoleId in (1 ,2 ,3 ) and uug .Deleted = 0 and uug .UserId = @userId) auth ON n .Id = auth .CatalogueNodeId
210- LEFT JOIN resources .ResourceVersionRatingSummary rs ON rs .ResourceVersionId = rv .Id
210+ INNER JOIN resources .ResourceVersionRatingSummary rs ON rs .ResourceVersionId = rv .Id
211211 WHERE rv .VersionStatusId = 2
212212 ORDER BY p .CreateDate DESC
213213
You can’t perform that action at this time.
0 commit comments