We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e002c48 commit af13deeCopy full SHA for af13dee
DigitalLearningSolutions.Data/DataServices/CourseContentService.cs
@@ -270,18 +270,18 @@ FROM Sessions AS S1 WITH (NOLOCK)
270
try
271
{
272
return connection.QueryFirst<int>(
273
- @"SELECT ProgressId
274
- FROM Progress
+ @"SELECT COALESCE((SELECT ProgressID
+ FROM Progress
275
WHERE CandidateID = @candidateId
276
AND CustomisationID = @customisationId
277
AND SystemRefreshed = 0
278
- AND RemovedDate IS NULL",
+ AND RemovedDate IS NULL), 0) AS ProgressId",
279
new { candidateId, customisationId }
280
);
281
}
282
catch (InvalidOperationException)
283
284
- return null;
+ return 0;
285
286
287
0 commit comments