Skip to content

Commit

Permalink
Merge branch 'main' into minor-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-Ram committed Dec 14, 2024
2 parents c56ab56 + 5884459 commit a613709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions packages/api/src/minor/minor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,11 @@ export type SupportedConcentrations = {

// { majorName => { concentration, minRequiredConcentrations, verified} }
export type SupportedMajorsForYear = Record<string, SupportedConcentrations>;
export type SupportedMinorsForYear = Record<string, Minor>;

// { year => supported majors }
export type SupportedMajors = Record<string, SupportedMajorsForYear>;

export type SupportedMinors = Record<string, Record<string, Minor>>;
export type SupportedMinors = Record<string, SupportedMinorsForYear>;

/**
* Types for a some result from an algorithim. Currently used for the result of
Expand Down

0 comments on commit a613709

Please sign in to comment.