|  | @ -126,40 +126,6 @@ export class SymbolProfileService { | 
			
		
	
		
		
			
				
					|  |  |       }); |  |  |       }); | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |   public async getSymbolProfilesByUserSubscription({ |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     withUserSubscription = false |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   }: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     withUserSubscription?: boolean; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   }) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     return this.prismaService.symbolProfile.findMany({ |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       include: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         Order: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           include: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             User: true |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       }, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       orderBy: [{ symbol: 'asc' }], |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       where: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         Order: withUserSubscription |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           ? { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |               some: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 User: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                   Subscription: { some: { expiresAt: { gt: new Date() } } } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |               } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           : { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |               every: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 User: { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                   Subscription: { none: { expiresAt: { gt: new Date() } } } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |               } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     }); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   public updateAssetProfileIdentifier( |  |  |   public updateAssetProfileIdentifier( | 
			
		
	
		
		
			
				
					|  |  |     oldAssetProfileIdentifier: AssetProfileIdentifier, |  |  |     oldAssetProfileIdentifier: AssetProfileIdentifier, | 
			
		
	
		
		
			
				
					|  |  |     newAssetProfileIdentifier: AssetProfileIdentifier |  |  |     newAssetProfileIdentifier: AssetProfileIdentifier | 
			
		
	
	
		
		
			
				
					|  | 
 |