pull/643/head^2
Travis Fischer 2024-06-04 06:49:46 -05:00
rodzic 3269e9b67d
commit 2ae6a2e49a
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
import defaultKy, { type KyInstance } from 'ky' import defaultKy, { type KyInstance } from 'ky'
import pThrottle from 'p-throttle' import pThrottle from 'p-throttle'
import { assert, getEnv, throttleKy } from '../utils.js' import { assert, getEnv, sanitizeSearchParams, throttleKy } from '../utils.js'
/** /**
* TODO: I'm holding off on converting this client to an `AIFunctionsProvider` * TODO: I'm holding off on converting this client to an `AIFunctionsProvider`
@ -515,8 +515,7 @@ export class PeopleDataLabsClient {
async companyProfile(options: peopledatalabs.CompanyLookupOptions) { async companyProfile(options: peopledatalabs.CompanyLookupOptions) {
return this.ky return this.ky
.get('company/enrich', { .get('company/enrich', {
// @ts-expect-error location is a string[] and searchparams shows a TS error heres searchParams: sanitizeSearchParams({ ...options })
searchParams: { ...options }
}) })
.json<peopledatalabs.CompanyLookupResponse>() .json<peopledatalabs.CompanyLookupResponse>()
} }