mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
c46303cb2b
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 |
||
---|---|---|
.. | ||
jobs | ||
lib | ||
index.js |