summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlessandro Desantis <desa.alessandro@gmail.com>2020-07-30 17:07:36 +0200
committerAlessandro Desantis <desa.alessandro@gmail.com>2020-07-30 17:07:36 +0200
commitdbbe407c00ddd07a4cfcc62588704569e0ed7e51 (patch)
tree8d1ca6b644a3929a164ea23f2a7cdd7d308f0d67 /app
parentf5e3c95b8727f83a5fe8baafa3fd6452a3d9ab24 (diff)
Make event names more consistent
Diffstat (limited to 'app')
-rw-r--r--app/models/solidus_subscriptions/subscription.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/solidus_subscriptions/subscription.rb b/app/models/solidus_subscriptions/subscription.rb
index 849f5e2..9839773 100644
--- a/app/models/solidus_subscriptions/subscription.rb
+++ b/app/models/solidus_subscriptions/subscription.rb
@@ -280,8 +280,8 @@ module SolidusSubscriptions
event_type = {
active: 'subscription_activated',
canceled: 'subscription_canceled',
- pending_cancellation: 'subscription_cancellation_requested',
- inactive: 'subscription_deactivated',
+ pending_cancellation: 'subscription_canceled',
+ inactive: 'subscription_ended',
}[state.to_sym]
events.create!(event_type: event_type, details: as_json_for_event)