@mondart/nestjs-common-module 1.2.4 → 1.2.5
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.
|
@@ -25,7 +25,10 @@ let CachingService = class CachingService {
|
|
|
25
25
|
async get(key) {
|
|
26
26
|
const result = await this.cacheManager.get(key);
|
|
27
27
|
if (result) {
|
|
28
|
-
|
|
28
|
+
const value = typeof result === 'string'
|
|
29
|
+
? result
|
|
30
|
+
: result?.value;
|
|
31
|
+
return value ? JSON.parse(value) : undefined;
|
|
29
32
|
}
|
|
30
33
|
return undefined;
|
|
31
34
|
}
|