message: Melhorando logica
diff: @@ -77,7 +77,7 @@ export class CourseTakenService {
  let currentPart: Part;
  let currentTest: Test;
  - let invalidOptionFlag = false;
  + let invalidOptionFlag = true;
  if (currentLesson){
  currentPart = await this.partService.findPartByLessonIdAndSeqNum(currentLesson.id, courseTaken.currentPart);
  @@ -85,19 +85,11 @@ export class CourseTakenService {
  currentTest = await this.testService.findTestByPartIdAndSeqNum(currentPart.id, courseTaken.currentTest);
  if(currentTest){
  + invalidOptionFlag = false;
  return await this.prepareAttendAClassDTO(attendAClass, courseTaken, course, currentLesson, currentPart, currentTest);
  }
  - else{
  - invalidOptionFlag = true;
  }
  }
  - else{
  - invalidOptionFlag = true;
  - }
  - }
  - else{
  - invalidOptionFlag = true;
  - }
  if(invalidOptionFlag){
  this.updateCourseStatus(user, courseId);
  