mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Move back away from membership to subscription wording for events
refs https://github.com/TryGhost/Team/issues/1847
This commit is contained in:
parent
258192e47c
commit
b51d81843b
@ -108,22 +108,22 @@ function getAction(event, hasMultipleNewsletters) {
|
||||
|
||||
if (event.type === 'subscription_event') {
|
||||
if (event.data.type === 'created') {
|
||||
return 'started paid membership';
|
||||
return 'started paid subscription';
|
||||
}
|
||||
if (event.data.type === 'updated') {
|
||||
return 'changed paid membership';
|
||||
return 'changed paid subscription';
|
||||
}
|
||||
if (event.data.type === 'canceled') {
|
||||
return 'canceled paid membership';
|
||||
return 'canceled paid subscription';
|
||||
}
|
||||
if (event.data.type === 'reactivated') {
|
||||
return 'reactivated paid membership';
|
||||
return 'reactivated paid subscription';
|
||||
}
|
||||
if (event.data.type === 'expired') {
|
||||
return 'ended paid membership';
|
||||
return 'ended paid subscription';
|
||||
}
|
||||
|
||||
return 'changed paid membership';
|
||||
return 'changed paid subscription';
|
||||
}
|
||||
|
||||
if (event.type === 'email_opened_event') {
|
||||
|
Loading…
Reference in New Issue
Block a user