Skip to content

Commit

Permalink
Merge pull request antonioribeiro#305 from mohabhassan/patch-2
Browse files Browse the repository at this point in the history
fixed error (stat panel uses created_at but select takes updated_at)
  • Loading branch information
antonioribeiro authored Jul 31, 2017
2 parents e8c6fea + 44680d7 commit f1dbb4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Vendor/Laravel/Controllers/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function apiLog($uuid)
'is_json',
'wants_json',
'error_id',
'updated_at',
'created_at',
]);

return Datatables::of($query)
Expand Down Expand Up @@ -156,23 +156,23 @@ public function apiLog($uuid)
})

->edit_column('is_ajax', function ($row) {
return $row->is_ajax ? 'yes' : '';
return $row->is_ajax ? 'yes' : 'no';
})

->edit_column('is_secure', function ($row) {
return $row->is_secure ? 'yes' : '';
return $row->is_secure ? 'yes' : 'no';
})

->edit_column('is_json', function ($row) {
return $row->is_json ? 'yes' : '';
return $row->is_json ? 'yes' : 'no';
})

->edit_column('wants_json', function ($row) {
return $row->wants_json ? 'yes' : '';
return $row->wants_json ? 'yes' : 'no';
})

->edit_column('error', function ($row) {
return $row->error ? 'yes' : '';
return $row->error ? 'yes' : 'no';
})

->make(true);
Expand Down

0 comments on commit f1dbb4f

Please sign in to comment.