Skip to content

Commit

Permalink
fix: force get variant is back (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Jul 19, 2023
1 parent 69ddeef commit 548c9af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unleash-client",
"version": "4.1.0-beta.2",
"version": "4.1.0-beta.3",
"description": "Unleash Client for Node",
"license": "Apache-2.0",
"main": "./lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default class UnleashClient extends EventEmitter {
// gradual rollout. This is not intended for general use, prefer getVariant instead
forceGetVariant(name: string, context: Context, fallbackVariant?: Variant): Variant {
const feature = this.repository.getToggle(name);
return this.resolveVariant(feature, context, false, fallbackVariant);
return this.resolveVariant(feature, context, true, fallbackVariant);
}

private resolveVariant(
Expand Down

0 comments on commit 548c9af

Please sign in to comment.