SwapnilShahGit / SIP

This is a project that was created by the PEY Interns of the 2016-2017 year at SOTI. We created an organizational tool for students using the MEAN stack.
3 stars 0 forks source link

Update GET: /api/events to return course events #593

Open hobindar opened 7 years ago

hobindar commented 7 years ago

At the moment, GET: /api/events will not return course events. This needs to be changed. Assuming front end keeps the section arrays updated as well as selected section value (which they should), we can just toss in section_array[selected_section] as an extra event. The object may need to be modified slightly to be consistent with other events. This modification should happen on the fly.

The course controller also contains a strange typo. On add course, we store lecArray in the database. However, this field is never defined anywhere. Given how small this issue is, let's fix it here at the same time.

Let's also remove the hash and user database entries with this issue. Both are not used anywhere.

CC: @pranR