Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
inc/rest/routes/TermRoutes.php
@@ -3,6 +3,7 @@
use JVBase\Instance;
use JVBase\managers\Cache;
use JVBase\managers\Errors;
use JVBase\managers\TaxonomyRelationships;
use JVBase\registrar\Registrar;
use JVBase\rest\Rest;
@@ -27,9 +28,7 @@
        $this->cacheName = 'terms';
        parent::__construct();
      $this->cache = Cache::for('terms', 'term');
      if (JVB_TESTING) {
         $this->cache->flush();
      }
        $this->per_page = 20;
@@ -559,7 +558,7 @@
         $membership = Site::membership();
         if ($membership && $membership->has('term_approval')) {
            $approval_routes = JVB()->routes('approvals');
            $approval_routes = ApprovalRoutes::getInstance();
            $request_id = $approval_routes->createTermApprovalRequest(
               $user_id,
               $taxonomy,
@@ -602,7 +601,7 @@
         ], 201); // 201 Created
      } catch (Exception $e) {
         JVB()->error()->log(
         Errors::getInstance()->log(
            'terms',
            'Term creation failed: ' . $e->getMessage(),
            ['user_id' => $user_id, 'taxonomy' => $taxonomy, 'name' => $name]