From b6ed837ace0dfac17511e51061f14742010d4916 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 26 Oct 2024 23:53:36 -0400 Subject: [PATCH] Fix cache nami ng --- www-api/app/Controllers/WrenchWallet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 72e5925d..0663dce0 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -183,7 +183,7 @@ class WrenchWallet extends BaseController $raw_json = file_get_contents('php://input'); $in = json_decode($raw_json, true); $out=[]; - $endpoint = "WALLETS-USERS-KIDS-". $in["family_uid"]; + $endpoint = "WALLETS-USERS_KIDS-". str_replace('-','_', $in["family_uid"]); $in["loc"] = $_SERVER["REMOTE_ADDR"]; log_message('critical', "IN ARRAY for call 0001 -> ".serialize($in)); $in["action"] = 'getkidswallets'; //WRENCHBOARD_ACCOUNT_JOBLIST; @@ -227,7 +227,7 @@ class WrenchWallet extends BaseController $in = json_decode($raw_json, true); $in["action"] = 'getwallets'; $out=[]; - $endpoint = "WALLETS-USERS-". $in["uid"]; + $endpoint = "WALLETS-USERS-". str_replace('-','_', $in["uid"]); $out = $this->getCache($endpoint); if (!is_array($out) || count($out)==0 ){