Fix: add type assertion for FMCSA API response
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e8f453e14b
commit
54d3ec6fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ router.get("/api/v1/dot/search", async (req, res) => {
|
|||
{ signal: AbortSignal.timeout(10000), headers: { Accept: "application/json" } },
|
||||
);
|
||||
if (apiResp.ok) {
|
||||
const apiData = await apiResp.json();
|
||||
const apiData = await apiResp.json() as any;
|
||||
const carriers = (apiData.content || []).map((item: any) => {
|
||||
const c = item.carrier || item;
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue