AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
4 stars 2 forks source link

[refactor] simplify review router queries #125

Open davidlhw opened 2 months ago

davidlhw commented 2 months ago
  • There seems to be repetitive code in review.ts under reviews.map...... Maybe we can have a common utility function for this (to avoid code duplication)
  • Imo the reviewFor field under reviews.map.... can be cleaned up by using the reviewLabelType for it so we do not have to use as "professor" | "course") throughout