message: fix: CompleteCourseEvent in CourseRewardsService
diff: @@ -28,7 +28,7 @@ export class CourseRewardsService implements OnModuleInit {
  constructor(
  private readonly achievementRepository: AchievementRepository,
  private readonly badgeRepository: BadgeRepository,
  - private readonly courseTakenService: CourseTakenService
  + private readonly courseTakenService: CourseTakenService,
  ) {}
  onModuleInit(): void {
  @@ -56,9 +56,15 @@ export class CourseRewardsService implements OnModuleInit {
  courseId,
  userId,
  }: CompleteCourseRewardDTO): Promise<void> {
  - const {user} = await this.courseTakenService.findByUserIdAndCourseId(userId,courseId);
  + const { user } = await this.courseTakenService.findByUserIdAndCourseId(
  + userId,
  + courseId,
  + );
  - const completeCourse = this.courseTakenService.isCompletedByUserIdAndCourseId(userId,courseId);
  + const completeCourse = this.courseTakenService.isCompletedByUserIdAndCourseId(
  + userId,
  + courseId,
  + );
  if (!completeCourse) return;
  