We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fd5359 commit d4821a9Copy full SHA for d4821a9
lib/FetchEnvs.js
@@ -89,7 +89,7 @@ module.exports = class FetchEnvs {
89
// When updating a key, updating it for all users
90
for( const cacheUser of globalResourceCacheUsers ) {
91
if( globalResourceCache.has(`${cacheUser}/${cacheKey}`) ) {
92
- globalResourceCache.set(`${cacheUser}/${cacheKey}`, resource);
+ globalResourceCache.set(`${cacheUser}/${cacheKey}`, clone(resource));
93
updated = true;
94
}
95
@@ -162,7 +162,7 @@ module.exports = class FetchEnvs {
162
163
164
// Wait for the outstanding api call to complete, use it's value
165
- resource = await singleResourceQueryCache[cacheKey];
+ resource = clone( await singleResourceQueryCache[cacheKey] );
166
167
168
return resource;
0 commit comments