Browse Source

[FIX] method delete activityController

pull/9/head
Fuad Hadisurya 5 months ago
parent
commit
66d5261158
  1. 2
      app/Http/Controllers/ActivityController.php

2
app/Http/Controllers/ActivityController.php

@ -649,7 +649,7 @@ class ActivityController extends Controller
DB::rollBack();
return response()->json(['status' => 'failed', 'action' => 'error', 'message' => 'Data activity failed deleted!', 'code' => 500], 500);
}
DB::rollBack();
DB::commit();
return response()->json(['status' => 'success', "action" => "deleted", 'message' => 'Data activity successfully deleted!', 'code' => 200], 200);
}

Loading…
Cancel
Save