diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 927ec946..3edfdde2 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -18,7 +18,7 @@ class WrenchJobs extends BaseController $in = json_decode($raw_json, true); $in["action"] = -1; $out=[]; - $endpoint = "COMPLETED_HX-". $in["uid"]; + $endpoint = "COMPLETED_HX-". str_replace('-','_', $in["uid"]); // $out = $this->getCache($endpoint); if ( count($out)==0 ){ @@ -144,7 +144,7 @@ class WrenchJobs extends BaseController public function contractHx(){ $raw_json = file_get_contents('php://input'); $in = json_decode($raw_json, true); - $endpoint = "USER_CONTRACT_HX-". $in["uid"]; + $endpoint = "USER_CONTRACT_HX-". str_replace('-','_', $in["uid"]);; $out = $this->getCache($endpoint); if ( count($out)==0 ){ $local_url = "http://".$this->micro_service_net1.":3033/contractHx";