fix: one more of Status to StatusType
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import type { InstructionMode, ScrapedRow, Semester } from '@shared/types/Course';
|
import type { InstructionMode, ScrapedRow, Semester, StatusType } from '@shared/types/Course';
|
||||||
import { Course, Status } from '@shared/types/Course';
|
import { Course, Status } from '@shared/types/Course';
|
||||||
import { CourseSchedule } from '@shared/types/CourseSchedule';
|
import { CourseSchedule } from '@shared/types/CourseSchedule';
|
||||||
import Instructor from '@shared/types/Instructor';
|
import Instructor from '@shared/types/Instructor';
|
||||||
@@ -278,7 +278,7 @@ export class CourseCatalogScraper {
|
|||||||
* @param row the row of the course catalog table
|
* @param row the row of the course catalog table
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getStatus(row: HTMLTableRowElement): [status: Status, isReserved: boolean] {
|
getStatus(row: HTMLTableRowElement): [status: StatusType, isReserved: boolean] {
|
||||||
const div = row.querySelector(TableDataSelector.STATUS);
|
const div = row.querySelector(TableDataSelector.STATUS);
|
||||||
if (!div) {
|
if (!div) {
|
||||||
throw new Error('Status not found');
|
throw new Error('Status not found');
|
||||||
|
|||||||
Reference in New Issue
Block a user