Browse Source

Merge pull request 'Fix update bobot' (#82) from dev-wahyu into staging

Reviewed-on: ordo/adw-backend#82
pull/3/head
ibnu 2 years ago
parent
commit
9b817cb865
  1. 2
      app/Http/Controllers/ActivityController.php

2
app/Http/Controllers/ActivityController.php

@ -247,7 +247,7 @@ class ActivityController extends Controller
if(empty($id) || !is_int((int)$id))
return response()->json(['status'=>'failed', 'action'=>'error','message'=>'id is required!','code'=>400], 400);
$updateBobot = false;
$updateBobot = true;
if(!$data = Activity::find($id))
return response()->json(['status'=>'failed', 'action'=>'error','message'=>'Data not found!','code'=> 404], 404);
$dataUpdate = $request->all();

Loading…
Cancel
Save