next/server/api/story
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 05d11e0ea5
refactor(api): change stuff in story updating route
if the story doesn't exist/is null, throw
ensure chapter word count is updated (since we weren't already doing that for some reason....)
instead of clearing the original story's chapters and re-adding them one by one, update the existing ones in place, otherwise push to the array
use new signature for `replaceOrUploadContent` call
ensure chapters are sorted
2024-07-09 21:10:03 -04:00
..
[id] refactor(api): change stuff in story updating route 2024-07-09 21:10:03 -04:00
new.post.ts style(*): cleanup unused imports 2023-12-29 20:11:07 -05:00