File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed 
overrides/incrementalCache Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ const multiTierCache: IncrementalCache = {
8080          // If the metadata is older than the local cache, we can use the local cache 
8181          // If it's not found we assume that no write has been done yet and we can use the local cache 
8282          const  lastModified  =  data . Item ?. revalidatedAt ?. N 
83-             ? Number . parseInt ( data . Item . revalidatedAt . N ) 
83+             ? Number . parseInt ( data . Item . revalidatedAt . N ,   10 ) 
8484            : 0 ; 
8585          if  ( lastModified  <=  localCacheEntry . lastModified )  { 
8686            debug ( "Using local cache after checking ddb" ) ; 
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class LRUCache<T> {
1515  set ( key : string ,  value : any )  { 
1616    if  ( this . cache . size  >=  this . maxSize )  { 
1717      const  firstKey  =  this . cache . keys ( ) . next ( ) . value ; 
18-       if  ( firstKey )  { 
18+       if  ( firstKey   !==   undefined )  { 
1919        this . cache . delete ( firstKey ) ; 
2020      } 
2121    } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments