fix: migrate gitea remote to hermes VPS + fix TS errors from Gemini codegen
- gitea remote now points to http://143.198.27.163:3000/admin/timmy-tower.git (no more bore tunnel / Tailscale dependency) - push-to-gitea.sh: default URL → hermes, user → admin, fix http:// URL injection - .gitea-credentials: hermes token saved (gitignored) - orval.config.cjs: converted from .ts (fixed orval v8 TS config loading) - api-zod/src/index.ts: removed duplicate types/ re-export (both api.ts and types/ export same names — api.ts is sufficient) - integrations-gemini-ai/tsconfig.json: types:[] (no @types/node in this pkg) - batch/utils.ts: import AbortError as named export (not pRetry.AbortError) - image/index.ts: remove ai re-export (ai only on main client.ts now) - routes/gemini.ts: req.params[id] cast to String() for Express 5 type compat - package.json typecheck: exclude mockup-sandbox (pre-existing React 19 ref errors)
This commit is contained in:
@@ -35,7 +35,7 @@ router.post("/conversations", async (req: Request, res: Response) => {
|
||||
});
|
||||
|
||||
router.get("/conversations/:id", async (req: Request, res: Response) => {
|
||||
const id = parseInt(req.params.id ?? "", 10);
|
||||
const id = parseInt(String(req.params["id"]), 10);
|
||||
if (isNaN(id)) {
|
||||
res.status(400).json({ error: "Invalid id" });
|
||||
return;
|
||||
@@ -59,7 +59,7 @@ router.get("/conversations/:id", async (req: Request, res: Response) => {
|
||||
});
|
||||
|
||||
router.delete("/conversations/:id", async (req: Request, res: Response) => {
|
||||
const id = parseInt(req.params.id ?? "", 10);
|
||||
const id = parseInt(String(req.params["id"]), 10);
|
||||
if (isNaN(id)) {
|
||||
res.status(400).json({ error: "Invalid id" });
|
||||
return;
|
||||
@@ -79,7 +79,7 @@ router.delete("/conversations/:id", async (req: Request, res: Response) => {
|
||||
});
|
||||
|
||||
router.get("/conversations/:id/messages", async (req: Request, res: Response) => {
|
||||
const id = parseInt(req.params.id ?? "", 10);
|
||||
const id = parseInt(String(req.params["id"]), 10);
|
||||
if (isNaN(id)) {
|
||||
res.status(400).json({ error: "Invalid id" });
|
||||
return;
|
||||
@@ -98,7 +98,7 @@ router.get("/conversations/:id/messages", async (req: Request, res: Response) =>
|
||||
});
|
||||
|
||||
router.post("/conversations/:id/messages", async (req: Request, res: Response) => {
|
||||
const conversationId = parseInt(req.params.id ?? "", 10);
|
||||
const conversationId = parseInt(String(req.params["id"]), 10);
|
||||
if (isNaN(conversationId)) {
|
||||
res.status(400).json({ error: "Invalid id" });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user