Ghost/ghost
Daniel Lockyer ddd79494b0
Fixed actions not stored when deleting posts
- if a model is being deleted, `attributes` is an empty object and the
  data we actually need is in `_previousAttributes`
- because of this, only fetching the type using `.get` returned the
  wrong value, and the Action model validator would throw an error
  because we tried to insert an empty type
- we can access the previous value using `.previous(..)`
- this commit fixes saving actions when deleting a post by fetching the
  type from the previous attributes if the current attributes is empty
2022-08-19 13:21:13 +02:00
..
adapter-manager Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
admin Added signup & conversion counts to post index page 2022-08-18 19:24:54 -04:00
api-framework Organized package dependencies 2022-08-18 11:55:49 +02:00
api-version-compatibility-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
bootstrap-socket Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
constants Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
core Fixed actions not stored when deleting posts 2022-08-19 13:21:13 +02:00
custom-theme-settings-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
domain-events Organized package dependencies 2022-08-18 11:55:49 +02:00
email-analytics-provider-mailgun Organized package dependencies 2022-08-18 11:55:49 +02:00
email-analytics-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
email-content-generator Organized package dependencies 2022-08-18 11:55:49 +02:00
express-dynamic-redirects Organized package dependencies 2022-08-18 11:55:49 +02:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
job-manager Update dependency date-fns to v2.29.2 2022-08-18 17:15:58 +02:00
magic-link Organized package dependencies 2022-08-18 11:55:49 +02:00
mailgun-client Fixed use of static class field 2022-08-18 22:34:34 +02:00
member-analytics-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
member-attribution Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
member-events Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
members-analytics-ingress Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
members-api Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
members-csv Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
members-events-service Update dependency @tryghost/errors to v1.2.15 2022-08-18 12:02:38 +02:00
members-importer Organized package dependencies 2022-08-18 11:55:49 +02:00
members-ssr Organized package dependencies 2022-08-18 11:55:49 +02:00
minifier Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-api-version-mismatch Organized package dependencies 2022-08-18 11:55:49 +02:00
mw-cache-control Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-error-handler Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-session-from-token Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-update-user-last-seen Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-vhost Cleaned up unused test utils 2022-08-18 11:55:49 +02:00
oembed-service Organized package dependencies 2022-08-18 11:55:49 +02:00
offers Organized package dependencies 2022-08-18 11:55:49 +02:00
package-json Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
payments Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
security Organized package dependencies 2022-08-18 11:55:49 +02:00
session-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
settings-path-manager Update dependency date-fns to v2.29.2 2022-08-18 17:15:58 +02:00
stripe Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
update-check-service Organized package dependencies 2022-08-18 11:55:49 +02:00
verification-trigger Organized package dependencies 2022-08-18 11:55:49 +02:00
version-notifications-data-service Organized package dependencies 2022-08-18 11:55:49 +02:00