-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
/groups/10
has sections, but /groups/10-12345
doesn't.
Relevant code:
Lines 6 to 13 in 671dee6
export function getCoreCurriculumDocRefs(courseName: string): FirebaseFirestore.DocumentReference<Group>[] { | |
const db = firebase.firestore(); | |
const [department, catalogNumber] = courseName.trim().split(' ') | |
return core_curriculum | |
.filter((e: any) => e.department === department && e.catalogNumber === catalogNumber) // finds matches | |
.map((e: any) => e.coreCode) // "10" | |
.map((e: any) => db.doc(`/groups/${e}`)) as FirebaseFirestore.DocumentReference<Group>[]; | |
} |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working