mirror of
				https://git.sr.ht/~cadence/bibliogram
				synced 2025-10-31 03:25:36 +00:00 
			
		
		
		
	Fix getOrFetchPromise errors getting stuck cached
This commit is contained in:
		
							parent
							
								
									f1f24f8c4a
								
							
						
					
					
						commit
						8f0890f0ad
					
				| @ -130,6 +130,9 @@ class RequestCache extends TtlCache { | |||||||
| 		return this.getOrFetch(key, callback).then(result => { | 		return this.getOrFetch(key, callback).then(result => { | ||||||
| 			this.cache.delete(key) | 			this.cache.delete(key) | ||||||
| 			return result | 			return result | ||||||
|  | 		}).catch(error => { | ||||||
|  | 			this.cache.delete(key) | ||||||
|  | 			throw error | ||||||
| 		}) | 		}) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user