Skip to content

Commit

Permalink
Statesummary models now don't require an explicit with call anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jun 10, 2022
1 parent 6e5f06d commit 44a2f50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Cube/IcingaDb/IcingaDbHostStatusCube.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function listAvailableDimensions()

public function prepareInnerQuery()
{
$query = HoststateSummary::on($this->getDb())->with('host.state');
$query = HoststateSummary::on($this->getDb());
$query->columns(array_diff_key($query->getModel()->getColumns(), (new Host())->getColumns()));
$query->disableDefaultSort();
$this->applyRestrictions($query);
Expand Down
2 changes: 1 addition & 1 deletion library/Cube/IcingaDb/IcingaDbServiceStatusCube.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function listAvailableDimensions()

public function prepareInnerQuery()
{
$query = ServicestateSummary::on($this->getDb())->with(['service.state']);
$query = ServicestateSummary::on($this->getDb());
$query->columns(array_diff_key($query->getModel()->getColumns(), (new Service())->getColumns()));
$query->disableDefaultSort();
$this->applyRestrictions($query);
Expand Down

0 comments on commit 44a2f50

Please sign in to comment.