Fix corp search LIMIT type: cast to int

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-04-28 23:05:43 -05:00
parent 159a576157
commit f5d307a1e8

View file

@ -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],
);