File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
LearningHub.Nhs.WebUI/Controllers/Api Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -230,10 +230,10 @@ private async Task<bool> Commit(SCO scoObject)
230230 try
231231 {
232232 var activeContent = this . userService . GetActiveContentAsync ( ) . Result ;
233- if ( activeContent . Count == 0 )
234- {
235- return false ;
236- }
233+ //// if (activeContent.Count == 0)
234+ //// {
235+ //// return false;
236+ //// }
237237
238238 if ( ! activeContent . Any ( ac => ac . ScormActivityId == scoObject . InstanceId ) )
239239 {
@@ -265,10 +265,10 @@ private async Task<bool> Commit(SCO scoObject)
265265
266266 // Persist update.
267267 await this . activityService . UpdateScormActivityAsync ( scoObject ) ;
268- if ( scoObject . LessonStatusId == ScormLessionStatus . ActivityStatusId ( ScormLessionStatus . Completed ) || scoObject . LessonStatusId == ScormLessionStatus . ActivityStatusId ( ScormLessionStatus . Passed ) )
269- {
270- await this . activityService . CompleteScormActivity ( scoObject ) ;
271- }
268+ //// if (scoObject.LessonStatusId == ScormLessionStatus.ActivityStatusId(ScormLessionStatus.Completed) || scoObject.LessonStatusId == ScormLessionStatus.ActivityStatusId(ScormLessionStatus.Passed))
269+ //// {
270+ //// await this.activityService.CompleteScormActivity(scoObject);
271+ //// }
272272
273273 return true ;
274274 }
You can’t perform that action at this time.
0 commit comments