Fixed editing Offer description via API

no-issue

We were only updating the Offer description if it was truthy - rather
than if it existing, this resulting in empty strings or null not working
correctly.
This commit is contained in:
Fabien O'Carroll 2021-10-19 11:11:02 +02:00
parent 2891898f94
commit d303c40248
2 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@
"@tryghost/members-api": "2.3.0",
"@tryghost/members-csv": "1.1.7",
"@tryghost/members-importer": "0.3.3",
"@tryghost/members-offers": "0.7.1",
"@tryghost/members-offers": "0.7.2",
"@tryghost/members-ssr": "1.0.14",
"@tryghost/metrics": "0.2.4",
"@tryghost/mw-session-from-token": "0.1.25",

View File

@ -1552,10 +1552,10 @@
"@tryghost/tpl" "^0.1.3"
moment-timezone "0.5.23"
"@tryghost/members-offers@0.7.1":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@tryghost/members-offers/-/members-offers-0.7.1.tgz#0be01546b1d2706a276c508a6563dfcdeb226b57"
integrity sha512-9dCMTZb1VO9QypGEOMrvPlngFakgNJa7dRNHNZpPkaOi+JK4kfmddQ6IG2Q50bRanL6jQUeZ7PzPE2nJGTe9+w==
"@tryghost/members-offers@0.7.2":
version "0.7.2"
resolved "https://registry.yarnpkg.com/@tryghost/members-offers/-/members-offers-0.7.2.tgz#b32ee98842351a5aef7bc1c91dcdaf8069d411c5"
integrity sha512-mSwzjHnctorhpKz8wOauRKIBtFFk6+CdEiTlfiBoOLzB8K8hYq21y/iUetyznbj2peO3qdTkHa7oDcB0I0JR0A==
dependencies:
"@nexes/mongo-utils" "^0.3.1"
"@tryghost/string" "^0.1.20"