Skip to content

Commit

Permalink
Remove duplicate order statement. Fixes #3418
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jan 26, 2019
1 parent 73eea81 commit e21918c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Presenters/IncidentPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function latest_icon()
public function 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;
Expand Down

0 comments on commit e21918c

Please sign in to comment.