Skip to content

Commit b55026c

Browse files
committed
fix: algoliasearch builds
1 parent 959535e commit b55026c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/javascript/clients/algoliasearch/builds/definition.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ export function algoliasearch(appId: string, apiKey: string, options?: ClientOpt
3636
throw new Error('`apiKey` is missing.');
3737
}
3838

39-
const searchClient = searchClient(appId, apiKey, options);
39+
const client = searchClient(appId, apiKey, options);
4040

4141
return {
42-
...searchClient,
42+
...client,
4343
/**
4444
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
4545
*/
4646
get _ua(): string {
47-
return searchClient.transporter.algoliaAgent.value;
47+
return client.transporter.algoliaAgent.value;
4848
},
4949
initRecommend: (initOptions: InitClientOptions = {}): RecommendClient => {
5050
return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);

0 commit comments

Comments
 (0)