From dfa34a680815665b573fd75389f5c6b0c87596ce Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Wed, 7 Feb 2024 22:30:10 +0100 Subject: [PATCH] Fixed variable loading for single server query --- .../Features/Servers/Http/Controllers/ServersControllers.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Moonlight/Features/Servers/Http/Controllers/ServersControllers.cs b/Moonlight/Features/Servers/Http/Controllers/ServersControllers.cs index 451c32dd..3d81e461 100644 --- a/Moonlight/Features/Servers/Http/Controllers/ServersControllers.cs +++ b/Moonlight/Features/Servers/Http/Controllers/ServersControllers.cs @@ -77,10 +77,9 @@ public class ServersControllers : Controller var server = ServerRepository .Get() .Include(x => x.Allocations) + .Include(x => x.Variables) .Include(x => x.MainAllocation) .Include(x => x.Image) - .ThenInclude(x => x.Variables) - .Include(x => x.Image) .ThenInclude(x => x.DockerImages) .Where(x => x.Node.Id == node.Id) .FirstOrDefault(x => x.Id == id);