From c13fd16067044baaad6fec4537f3e62eafbd6df4 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 12 Sep 2024 11:38:13 -0400 Subject: [PATCH] fix uid needed --- www-api/app/Controllers/WrenchBanners.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www-api/app/Controllers/WrenchBanners.php b/www-api/app/Controllers/WrenchBanners.php index 94894fb6..51a0be69 100644 --- a/www-api/app/Controllers/WrenchBanners.php +++ b/www-api/app/Controllers/WrenchBanners.php @@ -45,6 +45,10 @@ class WrenchBanners extends BaseController $in = json_decode($raw_json, true); $out =[]; $in["action"] = WRENCHBOARD_ACCOUNT_HOMEBANNERS; + if (isset($in["uuid"]) && $in["uuid"] !='' ){ + $in["uid"]=$in["uuid"]; + } + $endpoint = "ACCOUNT_HOMEBANNERS-". $in["uuid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT); $out = $this->getCache($endpoint); // try find in cache if ( count($out) == 0 ){