diff --git a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php index daa5c620..13054a6c 100644 --- a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php +++ b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php @@ -96,16 +96,7 @@ class UpdateConstantLogic extends AbstractControllerLogic */ public function logic(Request $request) : JsonResponse { - try { - - $segment = $this->fetchesSegment->execute(['id' => $request->route('id')]); - - } catch (ResourceNotFoundException $exception){ - - $object = new SegmentObject('Standard Segment', 1); - - $segment = $this->createsSegment->execute($object); - } + $segment = $this->fetchesSegment->execute(['id' => $request->route('id')]); try {