Skip to content

Commit 008b18e

Browse files
committed
Fixes deployment issue with new servers due to DB changes.
1 parent f5eb309 commit 008b18e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v0.6.0-pre.2 (Courageous Carniadactylus)
7+
### Fixed
8+
* `[pre.2]` — Fixes bug where servers could not be manually deployed to nodes due to a broken SQL call.
9+
610
## v0.6.0-pre.2 (Courageous Carniadactylus)
711
### Fixed
812
* `[pre.1]` — Fixes bug with database seeders that prevented correctly installing the panel.

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function create(array $data)
216216
// Check Overallocation
217217
if (! $autoDeployed) {
218218
if (is_numeric($node->memory_overallocate) || is_numeric($node->disk_overallocate)) {
219-
$totals = Models\Server::select(DB::raw('SUM(memory) as memory, SUM(disk) as disk'))->where('node', $node->id)->first();
219+
$totals = Models\Server::select(DB::raw('SUM(memory) as memory, SUM(disk) as disk'))->where('node_id', $node->id)->first();
220220

221221
// Check memory limits
222222
if (is_numeric($node->memory_overallocate)) {

0 commit comments

Comments
 (0)