Files
freno-dev/src/server/api/schemas/blog.ts
Michael Freno 898c891bd5 chore: remediate pygienium audit findings
Dead code: 77 verified-unused exports, files (BackArrow, MenuBars,
cookies.ts, db/create.ts, schemas/comment.ts, security-headers.ts) and
12 unused dependencies removed
Comments: ~370 RESTATE comments stripped across 53 files; 2 verbose
blocks tightened; dead commented-out config removed
Complexity: bulkUpsert extracted into 11 per-entity helpers (CCN 156->~10);
login formHandler split into 3 submitters (CCN 63->~5); account page render
split into 8 section components (CCN 40); updatePost SQL builder rebuilt;
assert*Owned consolidated behind generic assertOwnedBy
Defensive guards: 4 redundant rethrow/nullish guards removed
2026-08-11 13:36:18 -04:00

25 lines
691 B
TypeScript

import { z } from "zod";
/**
* Blog/Post API Validation Schemas
*
* Schemas for post creation, updating, querying, and interactions
*/
// ============================================================================
// Post Interactions
// ============================================================================
/**
* Increment post read count
*/
export const incrementPostReadSchema = z.object({
postId: z.number()
});
// ============================================================================
// Type Exports
// ============================================================================
export type IncrementPostReadInput = z.infer<typeof incrementPostReadSchema>;