Fixed variable loading for single server query

This commit is contained in:
Marcel Baumgartner
2024-02-07 22:30:10 +01:00
parent 1b427607d1
commit dfa34a6808

View File

@@ -77,10 +77,9 @@ public class ServersControllers : Controller
var server = ServerRepository var server = ServerRepository
.Get() .Get()
.Include(x => x.Allocations) .Include(x => x.Allocations)
.Include(x => x.Variables)
.Include(x => x.MainAllocation) .Include(x => x.MainAllocation)
.Include(x => x.Image) .Include(x => x.Image)
.ThenInclude(x => x.Variables)
.Include(x => x.Image)
.ThenInclude(x => x.DockerImages) .ThenInclude(x => x.DockerImages)
.Where(x => x.Node.Id == node.Id) .Where(x => x.Node.Id == node.Id)
.FirstOrDefault(x => x.Id == id); .FirstOrDefault(x => x.Id == id);