-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in msetArgumentTransformer #1208
Comments
Having investigated some more, I see that this function is in the "ioredis" module not "ioredis-mock" - so I've opened a new issue here: redis/ioredis#1714 I will close this bug now and hope that "ioredis" devs fix it. |
Unfortunately the problem has yet to be fixed by "ioredis". You can fix in "ioredis-mock" by adding...
...in "processArguments" function before calling the Command.transformer. This is essentially what "ioredis" is doing and hence why the bug does not present itself in their module. |
@NeilASega if this is a widespread issue others might come across perhaps you could add a failing unit test to the codebase so that the discussion is easier to understand? I'm having trouble seeing the issue. It sounds like it also exists in redis itself? |
There's a bug in msetArgumentTransformer where it assumes that "typeof object" represents a JS object when arrays also return "object" as their type.
Following update fixes it:
Thanks,
Neil
The text was updated successfully, but these errors were encountered: