Browse Source

update response

pull/1/head
wahyuun 12 months ago
parent
commit
ad59e5f3ec
  1. 4
      app/Http/Controllers/UserToProyekController.php

4
app/Http/Controllers/UserToProyekController.php

@ -64,10 +64,10 @@ class UserToProyekController extends Controller
if($countRes > 0){
return response()->json(['status'=>'success' ,'message'=>'Project customer successfull created','code'=>200]);
}else{
return response()->json(['status'=>'success' ,'message'=>'Project customer failed created','code'=>400]);
return response()->json(['status'=>'failed' ,'message'=>'Project customer failed created','code'=>400]);
}
}else{
return response()->json(['status'=>'success' ,'message'=>'Project customer successfull created','code'=>200]);
return response()->json(['status'=>'failed' ,'message'=>'Project customer failed created','code'=>200]);
}
}

Loading…
Cancel
Save