Jake Vanderwerf
2026-02-07 8b82035f3f8be1462a7125ad7eafb990ca17fa94
inc/rest/routes/ReferralRoutes.php
@@ -26,7 +26,7 @@
   public function __construct()
   {
      $this->cacheName = 'referrals';
      $this->cacheTtl = HOUR_IN_SECONDS;
      $this->cacheTtl = (int)HOUR_IN_SECONDS;
      parent::__construct();
      $this->referrals = CustomTable::for('referrals');
@@ -139,7 +139,7 @@
      ];
      $response = $this->success($data);
      return $this->addCacheHeaders($response, $cache_key, $data);
      return $this->addCacheHeaders($response);
   }
   /**
@@ -414,7 +414,7 @@
      $stats = JVB()->referrals()->getUserStats($user_id);
      $response = $this->success(['items' => [$stats]]);
      return $this->addCacheHeaders($response, $cache_key, $stats, 5 * MINUTE_IN_SECONDS);
      return $this->addCacheHeaders($response);
   }
   /**