Fix an auto deployment bug causing a node to be ignored if it had no servers already attached to it

closes #919
This commit is contained in:
Dane Everitt 2018-02-17 15:51:28 -06:00
parent c8d0286ec4
commit 7562e501af
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View file

@ -180,6 +180,6 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa
$instance->whereIn('nodes.location_id', $locations);
}
return $instance->cursor();
return $instance->groupBy('nodes.id')->cursor();
}
}