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:
parent
159a576157
commit
f5d307a1e8
1 changed files with 2 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ router.get("/api/v1/corp/search", async (req: Request, res: Response) => {
|
||||||
FROM entity_cache
|
FROM entity_cache
|
||||||
WHERE state = $1 AND entity_name % $2
|
WHERE state = $1 AND entity_name % $2
|
||||||
ORDER BY sim DESC
|
ORDER BY sim DESC
|
||||||
LIMIT $3`,
|
LIMIT $3::int`,
|
||||||
[state, q, limit],
|
[state, q, limit],
|
||||||
)
|
)
|
||||||
: await pool.query(
|
: await pool.query(
|
||||||
|
|
@ -269,7 +269,7 @@ router.get("/api/v1/corp/search", async (req: Request, res: Response) => {
|
||||||
FROM entity_cache
|
FROM entity_cache
|
||||||
WHERE entity_name % $1
|
WHERE entity_name % $1
|
||||||
ORDER BY sim DESC
|
ORDER BY sim DESC
|
||||||
LIMIT $2`,
|
LIMIT $2::int`,
|
||||||
[q, limit],
|
[q, limit],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue