mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	fix: did not include requests on db query for stats
This commit is contained in:
		
							parent
							
								
									f322ee6ab6
								
							
						
					
					
						commit
						5756004a3a
					
				| @ -55,7 +55,7 @@ public class ArtistController : Controller | ||||
|     public async Task<IActionResult> GetArtistStats() | ||||
|     { | ||||
|         var userId = User.GetUserId(); | ||||
|         var Artist = await _dbContext.UserArtists.FirstOrDefaultAsync(Artist=>Artist.UserId==userId); | ||||
|         var Artist = await _dbContext.UserArtists.Include(x=>x.Requests).FirstOrDefaultAsync(Artist=>Artist.UserId==userId); | ||||
|         if(Artist==null) | ||||
|         { | ||||
|             var ArtistRequest = await _dbContext.ArtistRequests.FirstOrDefaultAsync(request=>request.UserId==userId && request.Accepted==false); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler