Skip to content

Commit 6ececdd

Browse files
authored
fix: correct key for vote endpoint (#36)
1 parent 57c0c68 commit 6ececdd

File tree

1 file changed

+1
-2
lines changed
  • packages/generative-experiences-api-client/src

1 file changed

+1
-2
lines changed

packages/generative-experiences-api-client/src/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ export function createClient(opts: CreateClientOptions) {
376376
body: {
377377
index_name: this.options.indexName,
378378
output_application_id: this.options.appId,
379-
// replace with searchOnly Key after BE patch
380-
output_api_key: this.options.writeAPIKey,
379+
output_api_key: this.options.searchOnlyAPIKey,
381380
output_index_name: this._outputIndexName(),
382381
object_ids: objectIDs,
383382
vote_type: voteType,

0 commit comments

Comments
 (0)