Skip to content

Commit

Permalink
fix type name
Browse files Browse the repository at this point in the history
  • Loading branch information
mhd-hi committed Oct 6, 2024
1 parent 93ca381 commit bce2fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/jobs/processors/courses.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Program as ProgramCheminot } from '../../common/api-helper/cheminot/Pro
import { EtsCourseService } from '../../common/api-helper/ets/course/ets-course.service';
import { CourseService } from '../../course/course.service';
import {
AllProgramIncludeCourseIdsAndPrerequisites,
ProgramIncludeCourseIdsAndPrerequisitesType,
ProgramService,
} from '../../program/program.service';
import { ProgramCourseService } from '../../program-course/program-course.service';
Expand Down Expand Up @@ -104,7 +104,7 @@ export class CoursesProcessor extends WorkerHost {
}

private async processProgram(
programDB: AllProgramIncludeCourseIdsAndPrerequisites,
programDB: ProgramIncludeCourseIdsAndPrerequisitesType,
programsCheminot: ProgramCheminot[],
): Promise<void> {
console.debug(`Processing program: ${programDB.code}`);
Expand All @@ -126,7 +126,7 @@ export class CoursesProcessor extends WorkerHost {
}

private async processCheminotCourses(
programDB: AllProgramIncludeCourseIdsAndPrerequisites,
programDB: ProgramIncludeCourseIdsAndPrerequisitesType,
programCheminot: ProgramCheminot,
): Promise<void> {
for (const courseCheminot of programCheminot.courses) {
Expand All @@ -147,7 +147,7 @@ export class CoursesProcessor extends WorkerHost {
}

private async handleProgramCourseUpsertion(
programDB: AllProgramIncludeCourseIdsAndPrerequisites,
programDB: ProgramIncludeCourseIdsAndPrerequisitesType,
existingCourse: Course,
courseCheminot: CourseCheminot,
): Promise<void> {
Expand Down
4 changes: 2 additions & 2 deletions src/program/program.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Prisma, Program, ProgramType } from '@prisma/client';

import { PrismaService } from '../prisma/prisma.service';

export type AllProgramIncludeCourseIdsAndPrerequisites = {
export type ProgramIncludeCourseIdsAndPrerequisitesType = {
id: number;
code: string | null;
courses: {
Expand Down Expand Up @@ -47,7 +47,7 @@ export class ProgramService {
}

public async getAllProgramsWithCourses(): Promise<
AllProgramIncludeCourseIdsAndPrerequisites[]
ProgramIncludeCourseIdsAndPrerequisitesType[]
> {
const data = await this.prisma.program.findMany({
select: {
Expand Down

0 comments on commit bce2fd7

Please sign in to comment.