| 
						
						
							
								
							
						
						
					 | 
					@ -527,12 +527,7 @@ export class PortfolioService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    aImpersonationId: string, | 
					 | 
					 | 
					    aImpersonationId: string, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    aDateRange: DateRange = 'max' | 
					 | 
					 | 
					    aDateRange: DateRange = 'max' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  ): Promise<{ hasErrors: boolean; performance: PortfolioPerformance }> { | 
					 | 
					 | 
					  ): Promise<{ hasErrors: boolean; performance: PortfolioPerformance }> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const impersonationUserId = | 
					 | 
					 | 
					    const userId = await this.getUserId(aImpersonationId); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					      await this.impersonationService.validateImpersonationId( | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        aImpersonationId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.request.user.id | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const userId = impersonationUserId || this.request.user.id; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const portfolioCalculator = new PortfolioCalculator( | 
					 | 
					 | 
					    const portfolioCalculator = new PortfolioCalculator( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.currentRateService, | 
					 | 
					 | 
					      this.currentRateService, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |