Browse Source

Merge pull request 'quick fix' (#159) from dev-wahyu into staging

Reviewed-on: ordo/adw-backend#159
pull/3/head
ibnu 1 year ago
parent
commit
e914083ba6
  1. 2
      app/Http/Controllers/ActivityController.php

2
app/Http/Controllers/ActivityController.php

@ -165,7 +165,7 @@ class ActivityController extends Controller
} }
public function getActivityLast($parentId){ public function getActivityLast($parentId){
$activity = Activity::where('parent_id', $parentId)->orderByRaw('actual_start DESC')->first(); $activity = Activity::where('parent_id', $parentId)->orderByRaw('actual_end DESC')->first();
if (!isset($activity)) { if (!isset($activity)) {
return null; return null;
} }

Loading…
Cancel
Save