diff --git a/application/Api/v1/Modules/ApiControllerModule.php b/application/Api/v1/Modules/ApiControllerModule.php index 6418ca2a5..7a29ee0dd 100644 --- a/application/Api/v1/Modules/ApiControllerModule.php +++ b/application/Api/v1/Modules/ApiControllerModule.php @@ -1,6 +1,6 @@ "Preorder not found"]); @@ -41,9 +42,9 @@ class Activation extends Modules\ApiControllerModule { return \mfResponse::NotFound(["message" => "Preorder not found"]); } - // set status to 200 - if($preorder->status->code < 200) { - $new_status = \PreorderstatusModel::getFirst(["code" => 200]); + // set status to 500 + if($preorder->status->code < 500) { + $new_status = \PreorderstatusModel::getFirst(["code" => 500]); if(!$new_status) { return \mfResponse::InternalServerError(); } diff --git a/application/Api/v1/Modules/Preorder/Cif.php b/application/Api/v1/Modules/Preorder/Cif.php index e0e4ace06..cc54375aa 100644 --- a/application/Api/v1/Modules/Preorder/Cif.php +++ b/application/Api/v1/Modules/Preorder/Cif.php @@ -1,7 +1,7 @@ $this->get, "post" => $this->post, @@ -46,10 +49,12 @@ class PreorderApicontroller extends mfBaseApicontroller { $this->addRoute("/preorder/customerInstallationFeedback", [$modules["Cif"], "getCifData"], "GET"); $this->addRoute("/preorder/customerInstallationFeedback", [$modules["Cif"], "userSetCif"], "POST"); - $this->addRoute("/preorder/:code", "getPreorder", "GET"); - $this->addRoute("/preorder/:code", "cancelPreorder", "DELETE"); $this->addRoute("/preorder/:code/clientInstallationFinished", [$modules["Cif"], "providerSetCif"], "GET"); $this->addRoute("/preorder/:code/serviceActivated", [$modules["Activation"], "setServiceActive"], "POST"); + $this->addRoute("/preorder/:code", "getPreorder", "GET"); + $this->addRoute("/preorder/:code", "cancelPreorder", "DELETE"); + + } /* diff --git a/db/migrations/20231207133325_addressdb_netzgebiet_add_rimo_id.php b/db/migrations/20231207133325_addressdb_netzgebiet_add_rimo_id.php new file mode 100644 index 000000000..c9340ff94 --- /dev/null +++ b/db/migrations/20231207133325_addressdb_netzgebiet_add_rimo_id.php @@ -0,0 +1,31 @@ +getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + $table = $this->table("Netzgebiet"); + $table->addColumn("rimo_id", "string", ["null" => true, "default" => null, "limit" => 255, "after" => "extref"]); + $table->update(); + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}