From 845fdfd5cad1c4c0c5e1f2dd3db089f817414c90 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sat, 6 Aug 2022 00:41:28 +0800 Subject: [PATCH] debug all constant in settings --- .../Modules/Segments/ControllersLogic/UpdateConstantLogic.php | 2 +- .../Segments/ControllersLogic/UpdateConstantPostcodeLogic.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php index 64c41820..99951553 100644 --- a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php +++ b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantLogic.php @@ -102,7 +102,7 @@ class UpdateConstantLogic extends AbstractControllerLogic $constant = $this->fetchesConstant->execute(['segment_id' => $segment->id, 'reference' => $request->input('reference')]); - $constantValue = $this->updatesConstantValue->execute($constant->value, $request->input('id'), $request->input('value')); + $constantValue = $this->updatesConstantValue->execute($constant->value, $request->input('id'), $request->input('rate')); $object = new ConstantObject($request->input('reference'), $constantValue); diff --git a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantPostcodeLogic.php b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantPostcodeLogic.php index f39fdb29..ac6dc26e 100644 --- a/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantPostcodeLogic.php +++ b/app/Classes/Modules/Segments/ControllersLogic/UpdateConstantPostcodeLogic.php @@ -25,8 +25,8 @@ class UpdateConstantPostcodeLogic extends AbstractControllerLogic */ protected function notification():array { return [ - 'title' => 'Updated Segment Constant', - 'message' => 'You have successfully updated the Segment Constant' + 'title' => 'Updated Postcode Constant', + 'message' => 'You have successfully updated the Postcode Constant' ]; }