Skip to content

Commit

Permalink
feat: added courseLevel filter in syncAlgolia
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Aug 26, 2024
1 parent 185c9e7 commit d10dc13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/scrapers/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ export const syncCoursesToAlgolia = async (semester: string) => {
for_class: [...(elective_for || []), ...(compulsory_for || [])],
objectID: course.raw_id,
separate_times: course.times.flatMap((s) => s.match(/.{1,2}/g)),
courseLevel: course.course[0] + "000",
}),
);
algolia.saveObjects(algoliaChunk);
Expand Down

0 comments on commit d10dc13

Please sign in to comment.