Move back away from membership to subscription wording for events

refs https://github.com/TryGhost/Team/issues/1847
This commit is contained in:
James Morris 2022-08-25 10:58:58 +01:00
parent 258192e47c
commit b51d81843b

View File

@ -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') {