Skip to content

Commit

Permalink
Fixes part of #2775
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jan 21, 2018
1 parent ad80726 commit 7a4ec05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/IncidentUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class IncidentUpdateController extends AbstractApiController
*/
public function index(Incident $incident)
{
$updates = IncidentUpdate::orderBy('created_at', 'desc');
$updates = $incident->updates()->orderBy('created_at', 'desc');

if ($sortBy = Binput::get('sort')) {
$direction = Binput::has('order') && Binput::get('order') == 'desc';
Expand Down

0 comments on commit 7a4ec05

Please sign in to comment.