- 🐛 Fixed error when deleting a member that has received a newsletter email - Kevin Ansfield
View the changelogs for full details:
- Ghost - 3.40.3...3.40.4
- Ghost-Admin - TryGhost/Admin@3.40.3...3.40.4
Tag Name: 3.40.4
Release Date: 1/5/2021
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This minor release fixes a critical bug that caused errors when deleting members who had received newsletter emails. The fix ensures that newsletter email recipient records are properly handled during member deletion, preventing database errors and allowing for smoother member management operations.
No migration steps are required for this update. Simply upgrade to version 3.40.4 to benefit from the bug fix.
This update is recommended for all Ghost users who manage members and send newsletter emails, as it fixes a critical bug that prevents proper member deletion.
The upgrade process is straightforward:
No configuration changes or additional steps are required after upgrading.
This release resolves a critical bug (issue #12493) that caused errors when attempting to delete members who had received newsletter emails. The issue was related to how database relationships were handled between members and their email recipient records.
The fix includes:
bookshelf-relations dependency to version 1.4.1, which properly supports the hasMany relationship configuration neededMember.email_recipients relationship to preserve related records when a member is deletedbookshelf-relations configuration in the EmailRecipient modelThis ensures that when a member is deleted, the operation completes successfully without database constraint errors, while maintaining proper record relationships.
No new features were introduced in this release. This is a bug fix release focused on resolving an issue with member deletion.
No security fixes were included in this release.
No specific performance improvements were included in this release. The focus was on fixing the member deletion bug.
This release addresses a specific but important bug that affected member management in Ghost. By fixing the error that occurred when deleting members who had received newsletter emails, Ghost 3.40.4 ensures smoother administrative operations and prevents potential database inconsistencies.
The fix is particularly valuable for Ghost sites with active newsletter functionality, where administrators regularly need to manage their member database. The update ensures that member deletion operations work reliably regardless of the member's newsletter interaction history.
While this is a minor release with a focused scope, it resolves a pain point that could significantly disrupt member management workflows for site administrators.
View the changelogs for full details: