From ebd81e9d1d543ab7b58c7243c06f873a6e90b3bd Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 2 Nov 2020 19:58:03 -0800 Subject: [PATCH] Properly pass along build information to Wings; closes #2552 --- app/Services/Servers/BuildModificationService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Services/Servers/BuildModificationService.php b/app/Services/Servers/BuildModificationService.php index 43c863831..328e0e533 100644 --- a/app/Services/Servers/BuildModificationService.php +++ b/app/Services/Servers/BuildModificationService.php @@ -82,7 +82,11 @@ class BuildModificationService $updateData = $this->structureService->handle($server); - $this->daemonServerRepository->setServer($server)->update($updateData['build'] ?? []); + if (!empty($updateData['build'])) { + $this->daemonServerRepository->setServer($server)->update([ + 'build' => $updateData['build'], + ]); + } $this->connection->commit();