Commit Graph

12 Commits

Author SHA1 Message Date
7b8a089d95
fix(api): fix story chapter ids disappearing after an edit 2024-03-16 20:03:18 -04:00
f1a5cfffd4
fix(api): fall back to grabbing the current element's _id in replaceOrUploadContent call 2024-03-16 15:43:26 -04:00
07ed91b2a1
fix(api): move replaceOrUploadContent call out of else block 2024-03-16 15:32:58 -04:00
74722ddfd6
fix(api): update story editing route
properly await `replaceOrUpdateContent`
2024-01-04 15:20:25 -05:00
c8e84c909e
style(*): cleanup unused imports 2023-12-29 20:11:07 -05:00
922807ba6a
refactor(server/utils): make paths and imports more concise and correct 2023-12-29 16:34:00 -05:00
18f11f7ca7
refactor(api): check if coAuthor form field is an empty string
if it is, set coAuthor in document to null, otherwise, set it to the provided value
2023-12-28 19:58:54 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23: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
01d3b7f22b
feat(api): integrate co-author feature in api routes and helpers 2023-10-11 15:31:02 -04:00
b000c6734a
refactor(api): rename imports and refactor error messages 2023-10-03 01:24:06 -04:00
ff4b94d913
feat(api): ✏️ add story api endpoints
(update/create/delete)
2023-10-02 15:44:55 -04:00