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 affa397 commit 19f9b2f
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 @@ -248,7 +248,7 @@ public function latest_icon()
*/
public function latest()
{
if ($update = $this->wrappedObject->updates()->orderBy('created_at', 'desc')->first()) {
if ($update = $this->wrappedObject->updates()->first()) {
return $update;
}
}
Expand Down

0 comments on commit 19f9b2f

Please sign in to comment.