@candlerip/shared 0.0.124 → 0.0.127
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.
|
@@ -148,6 +148,11 @@ export const CacheWorker = (environmentMode, url, password, options) => {
|
|
|
148
148
|
customError: composeCustomError('Error get data by object keys from Redis', { err }),
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
+
if (data.some((item) => item === null)) {
|
|
152
|
+
return {
|
|
153
|
+
customError: composeCustomError('Error get data by object keys from Redis', { data }),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
151
156
|
return {
|
|
152
157
|
data: data.reduce((acc, curr, index) => ({
|
|
153
158
|
...acc,
|
|
@@ -162,7 +167,8 @@ export const CacheWorker = (environmentMode, url, password, options) => {
|
|
|
162
167
|
return { customError };
|
|
163
168
|
}
|
|
164
169
|
try {
|
|
165
|
-
await client.
|
|
170
|
+
await client.del(key);
|
|
171
|
+
await _client.json.set(key, '$', data);
|
|
166
172
|
}
|
|
167
173
|
catch (err) {
|
|
168
174
|
return {
|