@vasrefil/api-toolkit 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/redis/redis.js +1 -1
- package/package.json +1 -1
package/dist/redis/redis.js
CHANGED
|
@@ -123,7 +123,7 @@ class Redis_ {
|
|
|
123
123
|
const keyData = await this.get_item(key);
|
|
124
124
|
if (!keyData)
|
|
125
125
|
throw { message: `${key} does not exisit` };
|
|
126
|
-
const updatedData = { ...keyData, value };
|
|
126
|
+
const updatedData = { ...keyData, ...value };
|
|
127
127
|
const resp = await this.client.set(key, JSON.stringify(updatedData));
|
|
128
128
|
return resp;
|
|
129
129
|
}
|