Commit Graph

9 Commits

Author SHA1 Message Date
1447960b1a
refactor(db/models): update populatedDoc types
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
922807ba6a
refactor(server/utils): make paths and imports more concise and correct 2023-12-29 16:34:00 -05:00
60e564781d
refactor(*): use more sane path aliases 2023-12-28 19:58:26 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
be32464c93
fix(api): fix param name for reviews 2023-12-20 16:42:31 -05:00
088232f750
refactor(api & server/utils): refactor imports of db helpers
create an index file which exports the functions we need in one accessible place
2023-12-11 21:29:46 -05:00
7f1f8a72f5
refactor(api): get new reply id from save() call 2023-12-09 17:39:28 -05:00
fa27a16e65
fix(api): update review editing endpoint
when checking for whether the requester is the author, treat the author field as an object rather than a number (id)
2023-12-06 21:48:29 -05:00
9bf5e9dc38
feat(api): create review endpoints for creating, editing, deletion and replying 2023-10-03 00:21:14 -04:00