Remove duplicate order statement. Fixes #3418

This commit is contained in:
James Brooks
2019-01-26 10:12:22 +00:00
parent 73eea810b0
commit e21918c81e

View File

@@ -256,7 +256,7 @@ class IncidentPresenter extends BasePresenter implements Arrayable
public function latest() public function latest()
{ {
if (is_bool($this->latest)) { if (is_bool($this->latest)) {
$this->latest = $this->wrappedObject->updates()->orderBy('created_at', 'desc')->first(); $this->latest = $this->wrappedObject->updates()->first();
} }
return $this->latest; return $this->latest;