mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Improved a query (minor)
This commit is contained in:
parent
942556ee31
commit
951cc7da1b
1 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ namespace Ombi.Store.Repository.Requests
|
||||||
|
|
||||||
public TvRequests GetRequest(int tvDbId)
|
public TvRequests GetRequest(int tvDbId)
|
||||||
{
|
{
|
||||||
return Db.TvRequests.Where(x => x.TvDbId == tvDbId)
|
return Db.TvRequests.Where(x => x.TvDbId == tvDbId).AsSplitQuery()
|
||||||
.Include(x => x.ChildRequests)
|
.Include(x => x.ChildRequests)
|
||||||
.ThenInclude(x => x.RequestedUser)
|
.ThenInclude(x => x.RequestedUser)
|
||||||
.Include(x => x.ChildRequests)
|
.Include(x => x.ChildRequests)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue