mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +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)
|
||||
{
|
||||
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();
|
||||
|
||||
var artist = await _dbContext.UserArtists.FirstOrDefaultAsync(x=>x.Id==model.ArtistId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user