Thomas Kaul
					
					2 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
10 additions and 
7 deletions
			 
			
		 
		
			
				- 
					
					
					 
					apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -449,13 +449,16 @@ export class ExchangeRateDataService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              factors[format(date, DATE_FORMAT)] = factor; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } catch { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Logger.error( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              `No exchange rate has been found for ${currencyFrom}${currencyTo} at ${format( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                date, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                DATE_FORMAT | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              )}. Please complement market data for ${DEFAULT_CURRENCY}${currencyFrom} and ${DEFAULT_CURRENCY}${currencyTo}.`,
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              'ExchangeRateDataService' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let errorMessage = `No exchange rate has been found for ${currencyFrom}${currencyTo} at ${format( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              date, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              DATE_FORMAT | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            )}. Please complement market data for ${DEFAULT_CURRENCY}${currencyFrom}`;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (DEFAULT_CURRENCY !== currencyTo) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              errorMessage = `${errorMessage} and ${DEFAULT_CURRENCY}${currencyTo}`; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Logger.error(`${errorMessage}.`, 'ExchangeRateDataService'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |