Skip to content

Commit 7562e50

Browse files
committed
Fix an auto deployment bug causing a node to be ignored if it had no servers already attached to it
closes pterodactyl#919
1 parent c8d0286 commit 7562e50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
3131
* `[rc.1]` — Fixes bug preventing modification of the default value for an Egg variable.
3232
* `[rc.1]` — Fixed a bug that would occur when attempting to reset the daemon secret for a node.
3333
* `[rc.1]` — Fix exception thrown when attempting to modify an existing database host.
34+
* `[rc.1]` — Fix an auto deployment bug causing a node to be ignored if it had no servers already attached to it.
3435

3536
### Changed
3637
* Changed logger to skip reporting stack-traces on PDO exceptions due to sensitive information being contained within.

app/Repositories/Eloquent/NodeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ public function getNodesWithResourceUse(array $locations, int $disk, int $memory
180180
$instance->whereIn('nodes.location_id', $locations);
181181
}
182182

183-
return $instance->cursor();
183+
return $instance->groupBy('nodes.id')->cursor();
184184
}
185185
}

0 commit comments

Comments
 (0)