style: prettier format stories route
All checks were successful
/ checks (push) Successful in 38s
/ deploy (push) Successful in 8s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nholtware 2026-11-05 12:55:32 -06:00
parent 806e893076
commit aec6488d8c

View file

@ -77,12 +77,10 @@ export function storiesRouter({ store }: { store: StoryStore }): Router {
return void res.status(404).json({ error: "story not found" });
const issues = analyze(story.doc);
if (hasErrors(issues)) {
return void res
.status(422)
.json({
error: "story has errors; fix them before publishing",
issues,
});
return void res.status(422).json({
error: "story has errors; fix them before publishing",
issues,
});
}
const updated = await store.setPublished(story.id, true);
res.json({ story: updated, issues });