Skip to content

Commit

Permalink
update experienceKey for js test site and rename helper fnct
Browse files Browse the repository at this point in the history
  • Loading branch information
alapre committed Aug 15, 2024
1 parent 42bbfe6 commit f137e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/transformers/searchservice/ResultsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ export class ResultsFactory {
}

private static fromCustomSource(result: any, index: number): Result {
return this.fromCustomSourceHelper(result, index, Source.Custom);
return this.fromCustomDataHelper(result, index, Source.Custom);
}

private static fromFunctionVertical(result: any, index: number): Result {
return this.fromCustomSourceHelper(result, index, Source.FunctionVertical);
return this.fromCustomDataHelper(result, index, Source.FunctionVertical);
}

private static fromCustomSourceHelper(result: any, index: number, source: Source): Result {
private static fromCustomDataHelper(result: any, index: number, source: Source): Result {
const rawData = result.data ?? result;
return {
rawData: rawData,
Expand Down
2 changes: 1 addition & 1 deletion test-site/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import generativeDirectAnswerRequest from './requests/generativeDirectAnswerRequ

const coreConfig = {
apiKey: process.env.API_KEY,
experienceKey: 'rosetest',
experienceKey: 'developer-support-test',
locale: 'en',
experienceVersion: 'PRODUCTION',
};
Expand Down

0 comments on commit f137e83

Please sign in to comment.