1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-17 11:52:32 +03:00
Files
node-redis/packages/client/lib/commands/HSET.spec.ts
Tom Graham 82f43d9a53 Fix issue with buffers in objects using hSet (#2139)
* Fix issue with buffers in objects using hSet

When using hSet with an object, any buffer values inside the object are converted to strings instead of left as buffers.
This fix specifically handles the special case of buffers, whilst casting everything else strings (to continue "gracefully" handling the case where the value not a valid type).

* Update HSET.ts

* Update HSET.spec.ts

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-05-26 09:56:10 -04:00

2.3 KiB