Skip to content

Commit 15214bf

Browse files
committed
TD-5709 fixes subquery returns multiple results error
1 parent 6bdddeb commit 15214bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Data/DataServices/FrameworkDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ FROM FrameworkCollaborators fc
301301
AND aa3.UserID = (SELECT aa4.UserID FROM AdminAccounts aa4 WHERE aa4.ID = @adminId)) > 0 THEN 1
302302
ELSE 0
303303
END AS UserRole,
304-
(SELECT fwr.ID
304+
(SELECT TOP(1) fwr.ID
305305
FROM FrameworkCollaborators fc
306306
INNER JOIN AdminAccounts aa3 ON fc.AdminID = aa3.ID
307307
LEFT OUTER JOIN FrameworkReviews AS fwr ON fc.ID = fwr.FrameworkCollaboratorID AND fwr.Archived IS NULL AND fwr.ReviewComplete IS NULL

0 commit comments

Comments
 (0)