shuttlepro-shared 1.2.22 → 1.2.23

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.
Files changed (2) hide show
  1. package/config/redis.js +3 -3
  2. package/package.json +1 -1
package/config/redis.js CHANGED
@@ -85,9 +85,9 @@ const setRedisData = async (
85
85
  if (field) {
86
86
  result = await client.hSet(key, field, JSON.stringify(value));
87
87
  } else {
88
- result = await client.set(key, JSON.stringify(value), {
89
- EX: expiryInSeconds,
90
- });
88
+ result = expiryInSeconds
89
+ ? await client.set(key, stringifiedValue, { EX: expiryInSeconds })
90
+ : await client.set(key, stringifiedValue);
91
91
  }
92
92
  return result;
93
93
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {