Ghost/ghost/members-api
Rishabh Garg 0c743d67af
🐛 Fixed member newsletter subscription not saving in Admin (#16490)
fixes https://github.com/TryGhost/Team/issues/2783 
refs cb05fae5a3

The root cause of the issue was the fact we no longer checked for lack of `newsletters` property on member data before checking its `subscribed` property which is now deprecated. This caused a cascading effect where `subscribed:false` property on a member overrides the value for `newsletters` data. The check was accidentally removed in a previous bug fix.

So for members that were not subscribed to any newsletters, saving a newsletter subscription failed as they had their `subscribed` set to `false`, and it was resetting the newsletter subscription to empty always.
2023-03-24 23:29:49 +05:30
..
lib 🐛 Fixed member newsletter subscription not saving in Admin (#16490) 2023-03-24 23:29:49 +05:30
test removed require should 2023-03-08 16:50:03 -06:00
.eslintrc.js Removed trailing commas from .eslintrc.js 2021-07-14 12:04:46 +01:00
index.js Fixed index.js require 2021-07-15 18:06:45 +01:00
package.json Update Test & linting packages 2023-03-13 02:36:20 +00:00