diff --git a/server/api/story/[id]/index.put.ts b/server/api/story/[id]/index.put.ts index f19ca92..5ccd22e 100644 --- a/server/api/story/[id]/index.put.ts +++ b/server/api/story/[id]/index.put.ts @@ -46,8 +46,8 @@ export default eventHandler(async (ev) => { id: os.chapters[idx].id, posted: os.chapters[idx].posted, }); - await replaceOrUploadContent(os.chapters![idx].id, cont); } + await replaceOrUploadContent(os.chapters![idx].id, cont); update.chapters![update.chapters!.length - 1].words = countWords(cont); } os = await Story.findOneAndUpdate(