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