Jake Vanderwerf
2026-09-18 a6413da67a4579866f0fd0323ddb23a7b6b9654a
inc/managers/Favourites.php
@@ -2,6 +2,7 @@
namespace JVBase\managers;
use Exception;
use JVBase\inc\managers\ErrorHelper;
use JVBase\Instance;
use JVBase\registrar\Registrar;
use JVBase\rest\Rest;
@@ -13,7 +14,7 @@
}
class Favourites
{
   use Instance;
   use Instance, ErrorHelper;
   protected CustomTable $favourites;
   protected CustomTable $lists;
@@ -813,7 +814,7 @@
            'item_id'   => $post_id
         ])->deleteResults();
      } catch (Exception $e) {
         Errors::getInstance()->log('cleanupPostFavourites', $e->getMessage(), [
         $this->logError($e->getMessage(), 'cleanupPostFavourites',[
            'post_id' => $post_id
         ]);
      }
@@ -836,7 +837,7 @@
            'item_id'   => $term_id
         ])->deleteResults();
      } catch (Exception $e) {
         Errors::getInstance()->log('cleanupTermFavourites', $e->getMessage(), [
         $this->logError($e->getMessage(), 'cleanupTermFavourites',[
            'term_id' => $term_id,
            'taxonomy'=> $taxonomy
         ]);