Skip to content

Commit 272c3ab

Browse files
yfrancisgreghuels
authored andcommitted
Hash flag keys before looking up
1 parent ec87564 commit 272c3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/eppo-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ export default class EppoClient {
957957
validateNotBlank(flagKey, 'Invalid argument: flagKey cannot be blank');
958958

959959
// Check for override early
960-
const overrideVariation = this.overridesStore?.get(flagKey);
960+
const overrideVariation = this.overridesStore?.get(getMD5Hash(flagKey));
961961
if (overrideVariation) {
962962
const configFormat = this.overridesStore?.getFormat() ?? '';
963963
const flagEvaluationDetailsBuilder = this.newFlagEvaluationDetailsBuilder(flagKey);

0 commit comments

Comments
 (0)