mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	change API back
This commit is contained in:
		
							parent
							
								
									65df8bf7f8
								
							
						
					
					
						commit
						cc2c4ff3c8
					
				| @ -1057,7 +1057,7 @@ public class RequestsController : Controller | ||||
|     [Authorize("write:request")] | ||||
|     [HttpPost] | ||||
|     [Route("Request")] | ||||
|     public async Task<IActionResult> CreateRequest([FromForm] RequestCreateModel model) | ||||
|     public async Task<IActionResult> CreateRequest(RequestCreateModel model) | ||||
|     { | ||||
|         var openRequests = await _dbContext.Requests | ||||
|             .Where(x=>x.UserId==User.GetUserId() && x.Declined==false && x.Completed==false) | ||||
|  | ||||
| @ -4,7 +4,7 @@ namespace comissions.app.database.Models.Request; | ||||
| 
 | ||||
| public class RequestCreateModel | ||||
| { | ||||
|     [FromForm]public int ArtistId { get; set; } | ||||
|     [FromForm]public string Message { get; set; } | ||||
|     [FromForm]public decimal Amount { get; set; } | ||||
|     public int ArtistId { get; set; } | ||||
|     public string Message { get; set; } | ||||
|     public decimal Amount { get; set; } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler