dt-common-device 11.1.2 → 11.1.4

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.
@@ -201,7 +201,7 @@ let AuditUtils = (() => {
201
201
  const cacheKey = `${this.CACHE_PREFIX}:${entityType}:${entityId}`;
202
202
  // Try to get from cache first
203
203
  const cachedData = await this.redisUtils.get(cacheKey);
204
- if (cachedData) {
204
+ if (cachedData && JSON.parse(cachedData)) {
205
205
  return JSON.parse(cachedData);
206
206
  }
207
207
  // If not in cache, fetch from database and cache it
@@ -26,10 +26,10 @@ class CronicleService {
26
26
  params: {
27
27
  url: apiUrl,
28
28
  method,
29
- headers: JSON.stringify({
29
+ headers: {
30
30
  "Content-Type": "application/json",
31
31
  "x-api-key": this.cronicleApiKey,
32
- }),
32
+ },
33
33
  timeout: 120,
34
34
  },
35
35
  data: payload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "11.1.2",
3
+ "version": "11.1.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [