Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Adds the presence validation for the new secret_key

Stefan Vermaas0aefa09678c4
diff --git a/api/app/models/spree/webhooks/subscriber.rb b/api/app/models/spree/webhooks/subscriber.rb
index b4ddabc54b..c651516154 100644
--- a/api/app/models/spree/webhooks/subscriber.rb
+++ b/api/app/models/spree/webhooks/subscriber.rb
@@ -8,6 +8,7 @@ module Spree
has_many :events, inverse_of: :subscriber
validates :url, 'spree/url': true, presence: true
+ validates :secret_key, presence: true
validate :check_uri_path