mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									e980855d17
								
							
						
					
					
						commit
						bc90e226b2
					
				| @ -1064,7 +1064,7 @@ public class RequestsController : Controller | |||||||
|     public async Task<IActionResult> CreateRequest([FromBody] RequestCreateModel model) |     public async Task<IActionResult> CreateRequest([FromBody] RequestCreateModel model) | ||||||
|     { |     { | ||||||
|         var openRequests = await _dbContext.Requests |         var openRequests = await _dbContext.Requests | ||||||
|             .Where(x=>x.UserId==User.GetUserId() && (x.Completed==false || x.Declined==false)) |             .Where(x=>x.UserId==User.GetUserId() && x.Declined==false && x.Completed==false) | ||||||
|             .CountAsync(); |             .CountAsync(); | ||||||
|          |          | ||||||
|         var artist = await _dbContext.UserArtists.FirstOrDefaultAsync(x=>x.Id==model.ArtistId); |         var artist = await _dbContext.UserArtists.FirstOrDefaultAsync(x=>x.Id==model.ArtistId); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler