Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/SAIG-KMITL/edusaig-api into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganthepro committed Nov 29, 2024
2 parents 2f73226 + 729ddd3 commit e2bf183
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 e2bf183

Please sign in to comment.