diff --git a/backend/src/repositories/course.repository.ts b/backend/src/repositories/course.repository.ts index 51b571bb5..620ff19a7 100644 --- a/backend/src/repositories/course.repository.ts +++ b/backend/src/repositories/course.repository.ts @@ -4,6 +4,8 @@ import { CourseCodeSchema, CourseSchema, } from "../api/schemas/course.schema"; +import e from "express"; +import { Console } from "console"; export class CourseRepository { constructor(private readonly prisma: PrismaClient) {} diff --git a/frontend/src/components/TruncatedDescription/TruncatedDescription.tsx b/frontend/src/components/TruncatedDescription/TruncatedDescription.tsx index e08fa3074..dcf3fa607 100644 --- a/frontend/src/components/TruncatedDescription/TruncatedDescription.tsx +++ b/frontend/src/components/TruncatedDescription/TruncatedDescription.tsx @@ -35,6 +35,7 @@ export default function TruncatedDescription({ newMax++; index++; } + if (index === content.length) { setShortenedContent(content); } else { @@ -50,7 +51,7 @@ export default function TruncatedDescription({ }, [content]) return ( -
{showFullContent ? content : shortenedContent}
diff --git a/migration/Dockerfile b/migration/Dockerfile index 27a01a5af..8bc0fdefc 100644 --- a/migration/Dockerfile +++ b/migration/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.2-alpine +FROM node:20.4-alpine # Set the current working directory inside the container WORKDIR /app diff --git a/migration/src/migrate/repository.ts b/migration/src/migrate/repository.ts index cb93b0d49..9dfd8089e 100644 --- a/migration/src/migrate/repository.ts +++ b/migration/src/migrate/repository.ts @@ -88,25 +88,7 @@ export default class MigrationRepository { "terms", "title", "uoc", - "rating", - "archived", - "attributes", - "calendar", - "campus", - "description", - "enrolment_rules", - "equivalents", - "exclusions", - "faculty", - "field_of_education", - "gen_ed", - "level", - "school", - "study_level", - "terms", - "title", - "uoc", - "rating", + "rating" ], ["course_code"], { skipUpdateIfNoValuesChanged: true },