Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
inc/rest/routes/ShopRoutes.php
@@ -3,6 +3,7 @@
use JVBase\JVB;
use JVBase\managers\Emails;
use JVBase\managers\Errors;
use JVBase\managers\ImageGenerator;
use JVBase\managers\UploadManager;
use JVBase\registrar\Registrar;
@@ -164,7 +165,7 @@
      foreach ($setData as $name => $value) {
         if ($name === 'shop') {
            JVB()->routes('shop')->requestShopAdmission($operation->user_id, $value);
            $this->requestShopAdmission($operation->user_id, $value);
            $setData['requested_shop'] = $value;
            unset($setData['shop']);
         }
@@ -1007,7 +1008,7 @@
            return true;
        } catch (Exception $e) {
            $wpdb->query('ROLLBACK');
            JVB()->error()->log(
            Errors::getInstance()->log(
                'shop',
                "Error accepting artist invitation: " . $e->getMessage(),
                [
@@ -1075,7 +1076,7 @@
            return true;
        } catch (Exception $e) {
            JVB()->error()->log(
            Errors::getInstance()->log(
                'shop',
                "Error declining artist invitation: " . $e->getMessage(),
                [
@@ -1157,7 +1158,7 @@
            return true;
        } catch (Exception $e) {
            $wpdb->query('ROLLBACK');
            JVB()->error()->logError("Error adding artist to shop: " . $e->getMessage(), [
            Errors::getInstance()->logError("Error adding artist to shop: " . $e->getMessage(), [
                'user_id' => $user_id,
                'shop_id' => $shop_id
            ]);
@@ -1241,7 +1242,7 @@
            return true;
        } catch (Exception $e) {
            $wpdb->query('ROLLBACK');
            JVB()->error()->log(
            Errors::getInstance()->log(
                'shop',
                "Error removing artist from shop: " . $e->getMessage(),
                [