@vibe-flats/booking-engine-common-server 1.0.121 → 1.0.122
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.
- package/build/src/utils/cache.js +1 -1
- package/package.json +1 -1
package/build/src/utils/cache.js
CHANGED
|
@@ -105,7 +105,7 @@ class CacheManager {
|
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
107
107
|
try {
|
|
108
|
-
const timeToLive = ttl
|
|
108
|
+
const timeToLive = ttl || this.defaultTTL;
|
|
109
109
|
yield this.cache.set(key, value, timeToLive);
|
|
110
110
|
return true;
|
|
111
111
|
}
|