mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 09:35:25 +00:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									0bbcf9debe
								
							
						
					
					
						commit
						0ace08640b
					
				| @ -159,10 +159,7 @@ public class SellerProfileController : Controller | |||||||
|         var existingSellerProfile = await _dbContext.UserSellerProfiles.FirstOrDefaultAsync(sellerProfile=>sellerProfile.UserId==userId); |         var existingSellerProfile = await _dbContext.UserSellerProfiles.FirstOrDefaultAsync(sellerProfile=>sellerProfile.UserId==userId); | ||||||
|         if (existingSellerProfile == null) |         if (existingSellerProfile == null) | ||||||
|         { |         { | ||||||
|             var sellerProfileRequest = await _dbContext.SellerProfileRequests.FirstOrDefaultAsync(request=>request.UserId==userId && request.Accepted==false); |  | ||||||
|             if(sellerProfileRequest!=null) |  | ||||||
|             return BadRequest(); |             return BadRequest(); | ||||||
|             return Unauthorized(); |  | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         if(existingSellerProfile.Suspended) |         if(existingSellerProfile.Suspended) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler