Replace em dashes with hyphens across docs and comments

This commit is contained in:
2026-08-29 08:13:54 +00:00
parent 978846d304
commit 6d9db5adc1
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -2,14 +2,14 @@ import { createInsertSchema, createSelectSchema } from "drizzle-typebox";
import { t } from "elysia";
import { printers, printJobs } from "./schema";
// Generated straight from the Drizzle table definitions in `./schema` — this
// Generated straight from the Drizzle table definitions in `./schema` - this
// is the *only* place these shapes are defined. The Postgres column and the
// Elysia request/response validator can no longer drift apart: change a
// column in `./schema/printers.ts` and both the DB migration and the API
// validator below pick it up automatically.
//
// The second argument overrides fields Drizzle can't infer correctly for an
// insert — `id` is DB-generated (defaultRandom()) so it must be optional on
// insert - `id` is DB-generated (defaultRandom()) so it must be optional on
// the way in, even though it's required on the way out.
export const PrinterInsertSchema = createInsertSchema(printers, {
id: t.Optional(t.String({ format: "uuid" })),
+1 -1
View File
@@ -29,7 +29,7 @@ export const printerRoutes = new Elysia({ prefix: "/printers" })
set.status = 201;
return printer;
},
// Derived from `printers` via drizzle-typebox — see src/db/validators.ts.
// Derived from `printers` via drizzle-typebox - see src/db/validators.ts.
// Add or rename a column in the schema and this validator updates itself.
{ body: PrinterInsertSchema },
);