shuttlepro-shared 1.2.23 → 1.2.24

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 +2 -1
  2. package/package.json +1 -1
package/config/redis.js CHANGED
@@ -81,9 +81,10 @@ const setRedisData = async (
81
81
  ) => {
82
82
  try {
83
83
  await connectRedis();
84
+ const stringifiedValue = JSON.stringify(value);
84
85
  let result;
85
86
  if (field) {
86
- result = await client.hSet(key, field, JSON.stringify(value));
87
+ result = await client.hSet(key, field, stringifiedValue);
87
88
  } else {
88
89
  result = expiryInSeconds
89
90
  ? await client.set(key, stringifiedValue, { EX: expiryInSeconds })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {