Skip to content

Commit ca2fcb9

Browse files
committed
fix redis channel and redis key for reset function, plugin uniqueName scenario
1 parent d2d02f7 commit ca2fcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/featureToggles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class FeatureToggles {
272272
);
273273
}
274274

275-
_reset({ uniqueName, redisChannel, redisKey }) {
275+
_reset({ uniqueName, redisChannel = DEFAULT_REDIS_CHANNEL, redisKey = DEFAULT_REDIS_KEY }) {
276276
this.__redisChannel = uniqueName ? redisChannel + "-" + uniqueName : redisChannel;
277277
this.__redisKey = uniqueName ? redisKey + "-" + uniqueName : redisKey;
278278

0 commit comments

Comments
 (0)