Browse Source

Merge pull request 'staging upload 23-04-06' (#21) from staging into master

Reviewed-on: ordo/adw-backend#21
pull/3/head
ibnu 2 years ago
parent
commit
fc6643c0e3
  1. 6
      app/Http/Controllers/HierarchyFtthController.php
  2. 2
      app/Models/VersionGantt.php

6
app/Http/Controllers/HierarchyFtthController.php

@ -41,7 +41,7 @@ class HierarchyFtthController extends Controller
return response()->json([
'message' => 'Hierarchy FTTH created successfully.',
'data' => $hierarchyFtth
]);
],200);
} catch (\Exception $e) {
return response()->json([
'message' => 'Failed to create hierarchy FTTH.',
@ -72,7 +72,7 @@ class HierarchyFtthController extends Controller
return response()->json([
'message' => 'Hierarchy FTTH updated successfully.',
'data' => $hierarchyFtth
]);
],200);
} catch (\Exception $e) {
return response()->json([
'message' => 'Failed to update hierarchy FTTH.',
@ -90,7 +90,7 @@ class HierarchyFtthController extends Controller
return response()->json([
'message' => 'Hierarchy FTTH deleted successfully.',
'data' => $hierarchyFtth
]);
],200);
} catch (\Exception $e) {
return response()->json([
'message' => 'Failed to delete hierarchy FTTH.',

2
app/Models/VersionGantt.php

@ -21,6 +21,8 @@ class VersionGantt extends Model
'calculation_type',
'committed_cost',
'cost_to_complete',
'progress',
'hierarchy_ftth_id',
'created_at',
'created_by',
'updated_at',

Loading…
Cancel
Save