From f5d307a1e8e6ac444618211cee36a61c57c63b1b Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 28 Apr 2026 23:05:43 -0500 Subject: [PATCH] Fix corp search LIMIT type: cast to int Co-Authored-By: Claude Opus 4.6 (1M context) --- api/src/routes/corp-status.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/routes/corp-status.ts b/api/src/routes/corp-status.ts index 1375666..d003811 100644 --- a/api/src/routes/corp-status.ts +++ b/api/src/routes/corp-status.ts @@ -259,7 +259,7 @@ router.get("/api/v1/corp/search", async (req: Request, res: Response) => { FROM entity_cache WHERE state = $1 AND entity_name % $2 ORDER BY sim DESC - LIMIT $3`, + LIMIT $3::int`, [state, q, limit], ) : await pool.query( @@ -269,7 +269,7 @@ router.get("/api/v1/corp/search", async (req: Request, res: Response) => { FROM entity_cache WHERE entity_name % $1 ORDER BY sim DESC - LIMIT $2`, + LIMIT $2::int`, [q, limit], );