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