Skip to content

Commit

Permalink
Change versionId to versionKey.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Nov 5, 2024
1 parent 4186201 commit d0e487b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/server-ai/src/LDAIClientImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LDClientMin } from './LDClientMin';
* Metadata assorted with a model configuration variation.
*/
interface LDMeta {
versionId: string;
versionKey: string;
enabled: boolean;
}

Expand Down Expand Up @@ -58,7 +58,7 @@ export class LDAIClientImpl implements LDAIClient {
this._ldClient,
key,
// eslint-disable-next-line no-underscore-dangle
value._ldMeta?.versionId ?? '',
value._ldMeta?.versionKey ?? '',
context,
),
// eslint-disable-next-line no-underscore-dangle
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export class LDAIConfigTrackerImpl implements LDAIConfigTracker {
constructor(
private _ldClient: LDClientMin,
private _configKey: string,
private _versionId: string,
private _versionKey: string,
private _context: LDContext,
) {}

private _getTrackData(): { versionId: string; configKey: string } {
private _getTrackData(): { versionKey: string; configKey: string } {
return {
versionId: this._versionId,
versionKey: this._versionKey,
configKey: this._configKey,
};
}
Expand Down

0 comments on commit d0e487b

Please sign in to comment.