@patch-adams/core 1.4.32 → 1.4.33
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/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1634,8 +1634,8 @@ function generateLrsBridgeCode(options) {
|
|
|
1634
1634
|
var cached = localStorage.getItem(cacheKey);
|
|
1635
1635
|
if (cached) {
|
|
1636
1636
|
var parsed = JSON.parse(cached);
|
|
1637
|
-
// TTL: 7 days = 604800000 ms
|
|
1638
|
-
if (parsed.timestamp && (Date.now() - parsed.timestamp) < 604800000) {
|
|
1637
|
+
// TTL: 7 days = 604800000 ms; also invalidate if missing bravaisUserId (old cache)
|
|
1638
|
+
if (parsed.timestamp && (Date.now() - parsed.timestamp) < 604800000 && parsed.bravaisUserId) {
|
|
1639
1639
|
log('Employee data from localStorage cache');
|
|
1640
1640
|
employeeLookupData = parsed;
|
|
1641
1641
|
employeeLookupFetched = true;
|