Fix type-check after bun-sqlite 1.2.0 upgrade

Import types from @moduletrace/bun-sqlite/types now that the package
has an exports map, and guard optional ctx.props in signup server fn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-15 21:09:27 +01:00
co-authored by Claude Opus 5.5
parent 0f940048d4
commit 178f98104c
13 changed files with 369 additions and 584 deletions
@@ -8,7 +8,7 @@ import type {
} from "@/db/types/db";
import BunSQLite from "@moduletrace/bun-sqlite";
import { rmSync } from "fs";
import type { ServerQueryParam } from "@moduletrace/bun-sqlite/dist/types";
import type { ServerQueryParam } from "@moduletrace/bun-sqlite/types";
export default async function (
params: AdminCrudAPIParams,