From 902b80a09dc91a1d6d5ee03b38f340867e150664 Mon Sep 17 00:00:00 2001 From: Suraj Ramchandran <30753067+Suraj-Ram@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:29:27 -0500 Subject: [PATCH] Addressed comments --- packages/api/src/minor/minor.service.ts | 14 -------------- packages/common/src/types.ts | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/packages/api/src/minor/minor.service.ts b/packages/api/src/minor/minor.service.ts index 0ee018f4..8061b5bf 100644 --- a/packages/api/src/minor/minor.service.ts +++ b/packages/api/src/minor/minor.service.ts @@ -26,20 +26,6 @@ export class MinorService { } getSupportedMinors(): SupportedMinors { - //const supportedMinors: SupportedMinors = MINORS; - //MINOR_YEARS.forEach((year) => { - //const supportedMinorNames = Object.keys(MINORS[year]); - - //const supportedMinorForYear: SupportedMinorsForYear = {}; - //supportedMinorNames.forEach((name) => { - ////no concentration for minors??? - ////supportedMinorForYear[minorName] = this.getConcentrationsInfoForMinor( - ////minorName, - ////parseInt(year) - ////); - //}); - //supportedMinors[year] = supportedMinorForYear; - //}); return MINORS; } diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index d317a1d4..73977114 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -501,11 +501,11 @@ export type SupportedConcentrations = { // { majorName => { concentration, minRequiredConcentrations, verified} } export type SupportedMajorsForYear = Record; +export type SupportedMinorsForYear = Record; // { year => supported majors } export type SupportedMajors = Record; - -export type SupportedMinors = Record>; +export type SupportedMinors = Record; /** * Types for a some result from an algorithim. Currently used for the result of