Skip to content

Commit

Permalink
Merge pull request #54 from SAIG-KMITL/feat/connect-with-roadmap-ai
Browse files Browse the repository at this point in the history
Feat/connect with roadmap ai
  • Loading branch information
Ganthepro authored Nov 29, 2024
2 parents 93230a0 + 284067e commit 729ddd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/roadmap/roadmap.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
import { ConfigService } from '@nestjs/config';
import { Course } from 'src/course/course.entity';
import { GLOBAL_CONFIG } from 'src/shared/constants/global-config.constant';
import { CourseStatus } from 'src/shared/enums';
import { createPagination } from 'src/shared/pagination';
import { UserBackgroundService } from 'src/user-background/user-background.service';
import { FindOneOptions, FindOptionsWhere, Repository } from 'typeorm';
Expand Down Expand Up @@ -40,6 +41,7 @@ export class RoadmapService {
);
const course = await this.courseRepository.find({
relations: this.defaultRelations,
where: { status: CourseStatus.PUBLISHED },
});
try {
const requestBody = {
Expand Down

0 comments on commit 729ddd3

Please sign in to comment.