mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
only return non accepted
This commit is contained in:
parent
b696609df8
commit
a45cf993cc
@ -31,7 +31,7 @@ public class AdminArtistRequestsController : Controller
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GetArtistRequests(int offset = 0, int pageSize = 10)
|
||||
{
|
||||
var requests = _dbContext.ArtistRequests.Skip(offset).Take(pageSize).ToList();
|
||||
var requests = _dbContext.ArtistRequests.Where(x=>x.Accepted==false).Skip(offset).Take(pageSize).ToList();
|
||||
var result = requests.Select(x=>x.ToModel()).ToList();
|
||||
return Ok(result);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user