0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
Kevin Ansfield c46303cb2b
🐛 Fixed email analytics crashing when processing unsubscribe/complaint events (#14883)
refs https://github.com/TryGhost/Team/issues/1649

The event handlers for `unsubscribed`/`complained` events originating from Mailgun were still using the now-deleted `member.subscribed` field resulting in errors and aborted attempts at processing the Mailgun event log.

- `member.subscribed` no longer exists, replaced that part of the query with a delete of member<->newsletter association rows from the `members_newsletters` pivot table
- kept the member `updated_at` bump so we have some timestamp record of an update
- added creation of `member_subscribe_event` records for the newsletter unsubscribes to keep stats and history in check
  - the unsubscribed/complained events do or at least should originate from a member action so "member" is more appropriate than "system" even though the event is being handled by an internal system
2022-05-24 12:38:42 +01:00
..
adapters 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00
api 🐛 Fixed member exports timing out for large sites (#14876) (#14878) 2022-05-20 21:25:23 +01:00
data Added products and Stripe data to exports and imports (#14873) 2022-05-20 21:13:58 +01:00
lib Added gravatar URL to config to make it configurable (#14490) 2022-05-09 12:44:04 +01:00
models Added bulk destroy options (#14870) 2022-05-20 12:24:36 +02:00
services 🐛 Fixed email analytics crashing when processing unsubscribe/complaint events (#14883) 2022-05-24 12:38:42 +01:00
views
web 🐛 Fixed signing key identificaiton in JWKs 2022-05-24 12:20:30 +01:00
analytics-events.js
ghost-server.js Removed config and bluebird from ghost-server 2022-04-28 15:37:10 +01:00
notify.js
overrides.js
run-update-check.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
update-check.js 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00