From e21918c81e5c3db5af7fac7591a9c012da6291ae Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 26 Jan 2019 10:12:22 +0000 Subject: [PATCH] Remove duplicate order statement. Fixes #3418 --- app/Presenters/IncidentPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Presenters/IncidentPresenter.php b/app/Presenters/IncidentPresenter.php index 139860cb2bf6..0a8e8a65df98 100644 --- a/app/Presenters/IncidentPresenter.php +++ b/app/Presenters/IncidentPresenter.php @@ -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;