Skip to content

Commit 5b36ec5

Browse files
committed
null check for activity start and end date
1 parent c4be52f commit 5b36ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources/GetUsercertificateDetails.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ BEGIN
8686
) AS ResourceReferenceID,
8787
rv.MajorVersion,
8888
rv.MinorVersion,
89-
ra.ActivityStart AS AwardedDate,
89+
COALESCE(ra.ActivityEnd, ra.ActivityStart) AS AwardedDate,
9090
NULL AS CertificateDownloadUrl,
9191
NULL AS CertificatePreviewUrl
9292
FROM #MyActivity ma

0 commit comments

Comments
 (0)