Browse Source
			
			
			Bugfix/fix exception in portfolio calculator (#4119)
			
				* Add guard
* Update changelog
			
			
				pull/4120/head
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					11 months ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
2 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.processor.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					### Fixed | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- Fixed an exception in the caching of the portfolio snapshot in the portfolio calculator | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- Fixed the import of `jsonpath` to support REST APIs (`JSON`) via the scraper configuration | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					## 2.127.0 - 2024-12-08 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -86,7 +86,7 @@ export class PortfolioSnapshotProcessor { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      const expiration = addMilliseconds( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        new Date(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        snapshot.errors.length === 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        (snapshot?.errors?.length ?? 0) === 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ? this.configurationService.get('CACHE_QUOTES_TTL') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          : 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |