diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-10-05 17:42:44 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-10-05 17:42:44 +0200 |
commit | 4771ca1605e35e89408537b6b44e70e11bd26933 (patch) | |
tree | 7bb6d0ad0cad20a8315583ccbd62285b83a4d4c4 /app/subscribers/solidus_subscriptions | |
parent | 26c3495544dd8a534bbe410279b70b42dba310c8 (diff) |
Remove subscription_repopulated event
This event is not really useful in its current form. Instead, each
store should track repopulation in a way that makes sense for them.
Diffstat (limited to 'app/subscribers/solidus_subscriptions')
-rw-r--r-- | app/subscribers/solidus_subscriptions/event_storage_subscriber.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/subscribers/solidus_subscriptions/event_storage_subscriber.rb b/app/subscribers/solidus_subscriptions/event_storage_subscriber.rb index 93b5ba5..487139c 100644 --- a/app/subscribers/solidus_subscriptions/event_storage_subscriber.rb +++ b/app/subscribers/solidus_subscriptions/event_storage_subscriber.rb @@ -8,7 +8,6 @@ module SolidusSubscriptions event_action :track_subscription_activated, event_name: 'solidus_subscriptions.subscription_activated' event_action :track_subscription_canceled, event_name: 'solidus_subscriptions.subscription_canceled' event_action :track_subscription_ended, event_name: 'solidus_subscriptions.subscription_ended' - event_action :track_subscription_repopulated, event_name: 'solidus_subscriptions.subscription_repopulated' event_action :track_subscription_shipping_address_changed, event_name: 'solidus_subscriptions.subscription_shipping_address_changed' event_action :track_subscription_billing_address_changed, event_name: 'solidus_subscriptions.subscription_billing_address_changed' event_action :track_subscription_frequency_changed, event_name: 'solidus_subscriptions.subscription_frequency_changed' @@ -41,13 +40,6 @@ module SolidusSubscriptions ) end - def track_subscription_repopulated(event) - event.payload.fetch(:subscription).events.create!( - event_type: 'subscription_repopulated', - details: event.payload.fetch(:subscription).as_json, - ) - end - def track_subscription_shipping_address_changed(event) event.payload.fetch(:subscription).events.create!( event_type: 'subscription_shipping_address_changed', |