File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
flagsmith-engine/evaluation/evaluationContext Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ function mapIdentityOverridesToSegments(identityOverrides: IdentityModel[]): Seg
151151 name : fs . feature . name ,
152152 enabled : fs . enabled ,
153153 value : fs . getValue ( ) ,
154- priority : - Infinity
154+ priority : - Infinity ,
155+ metadata : {
156+ flagsmithId : fs . feature . id
157+ }
155158 } ) ) ;
156159
157160 const overridesHash = createHash ( 'sha1' ) . update ( JSON . stringify ( overridesKey ) ) . digest ( 'hex' ) ;
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export class Flags {
118118 ) : Flags {
119119 const flags : { [ key : string ] : Flag } = { } ;
120120 for ( const flag of Object . values ( evaluationResult . flags ) ) {
121- const flagsmithId = flag . metadata ?. flagsmithId || Number ( flag . feature_key ) ;
121+ const flagsmithId = flag . metadata ?. flagsmithId ;
122122 if ( ! flagsmithId ) {
123123 continue ;
124124 }
You can’t perform that action at this time.
0 commit comments