Browse Source

Merge pull request 'fix bug' (#198) from dev-wahyun into staging

Reviewed-on: ordo/adw-backend#198
pull/3/head
ibnu 1 year ago
parent
commit
5983ca50ed
  1. 5
      app/Http/Controllers/UserToProyekController.php

5
app/Http/Controllers/UserToProyekController.php

@ -33,7 +33,10 @@ class UserToProyekController extends Controller
public function addMultiple(Request $request){
$user_IDs = $request->user_id;
$data = UserToProyek::where("proyek_id", $request->proyek_id);
$data = UserToProyek::where([
["proyek_id" , $request->proyek_id],
['is_customer',true]
]);
if($data){
$data->delete();

Loading…
Cancel
Save