0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/services
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
..
adapter-manager Added multiple adapters capability to adapter manager 2021-10-21 20:22:45 +13:00
api-version-compatibility Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
auth Swapped setup to use tiers API endpoint 2022-05-12 19:48:27 +01:00
bulk-email Disabled model auto-refresh when processing email batches 2022-05-10 18:11:15 +01:00
email-analytics 🐛 Fixed email analytics crashing when processing unsubscribe/complaint events (#14883) 2022-05-24 12:38:42 +01:00
frontend-data-service Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
integrations Replace GhostError with InternalServerError 2021-12-14 12:17:48 +00:00
invitations Replaced i18n with tpl in accept.js (#13471) 2021-10-08 15:21:22 +01:00
invites Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884) 2021-12-14 11:22:39 +00:00
jobs Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884) 2021-12-14 11:22:39 +00:00
mail Extracted email-content-generator into a package 2022-05-04 17:28:09 +08:00
mega Added newsletter param to email preview endpoint (#14820) 2022-05-16 12:15:54 +01:00
members 🐛 Fixed member exports timing out for large sites (#14876) (#14878) 2022-05-20 21:25:23 +01:00
newsletters Fixed error in newsletter editing limit checks (#14817) 2022-05-13 10:15:35 +02:00
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
offers Fixed same redirectManager used in offer service between tests (#14340) 2022-03-24 10:18:52 +01:00
permissions Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
posts Renamed newsletter_id and email_recipient_filter options (#14798) 2022-05-16 10:18:04 +02:00
public-config Removed oauth experiment 2022-05-16 17:37:13 +01:00
redirects Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
route-settings Removed sync method from route settings loader 2022-04-28 15:37:09 +01:00
settings Extended public settings to include portal settings (#14801) 2022-05-12 19:54:45 +05:30
stats Replaced stats service with @tryghost/stats-service (#14527) 2022-04-21 14:57:07 +01:00
stripe Cleaned up output errors during tests 2022-04-05 18:17:47 +08:00
themes Switched gscan to validate against v5 set of rules 2022-05-02 20:56:25 +08:00
url Fixed comment 2022-05-17 17:21:38 +08:00
webhooks Added 'Content-Version' header to outgoing webhook requests 2022-05-12 13:54:21 +08:00
custom-theme-settings.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
limits.js Fixed incorrect usage of limit config causing Ghost not to boot 2022-05-10 15:47:45 -04:00
nft-oembed.js Added fallback for NFT title when name is missing 2021-12-03 21:16:22 +02:00
oembed.js Added missing message string 2022-03-21 09:07:54 +00:00
slack.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
twitter-embed.js Removed richTwitterNewsletters GA labs flag 2022-01-04 13:07:39 +00:00
users.js Renamed destroyByAuthor to reassignByAuthor 2022-04-28 15:37:13 +01:00
xmlrpc.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00