🐛 Fixed saving membership settings (#15196)

refs https://github.com/TryGhost/Ghost/commit/a58efd6b

The references commit updated the admin-api-schema to require the `trail_days`
property, which is not yet supported by the Admin. When saving membership
setting we also save all the Tiers, which then causes the validation to fail.

Until the Admin supports the property we should remove validation from the API
This commit is contained in:
Fabien 'egg' O'Carroll 2022-08-08 19:10:54 +01:00 committed by GitHub
parent 453f828aa7
commit e26c977c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@
"dependencies": {
"@sentry/node": "7.9.0",
"@tryghost/adapter-manager": "0.0.0",
"@tryghost/admin-api-schema": "4.1.0",
"@tryghost/admin-api-schema": "4.0.0",
"@tryghost/api-version-compatibility-service": "0.0.0",
"@tryghost/bookshelf-plugins": "0.4.3",
"@tryghost/bootstrap-socket": "0.0.0",

View File

@ -3085,10 +3085,10 @@
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==
"@tryghost/admin-api-schema@4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@tryghost/admin-api-schema/-/admin-api-schema-4.1.0.tgz#8f4a5d30f795864f83e3fede8344c50465eda1e9"
integrity sha512-nJ/QQbU177rxVMlH4/6fqcq0J1dPrJSFYt2f18yZoL87EHAZv5h22+ufkJVipPhxLjx48kiXpwDniiDqLeHYmA==
"@tryghost/admin-api-schema@4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@tryghost/admin-api-schema/-/admin-api-schema-4.0.0.tgz#97e528931fab8478d00b6b91e7e3d4a2b4c4c597"
integrity sha512-Yo4nV34aZY8M92dVMp+zEI2ZuHyFDcDHHvQ9yY1ZEOKhqkdKw6DxdR2HcAkQi/PSnM99N7CWk5WBKe9Vnm8+jA==
dependencies:
"@tryghost/errors" "^1.0.0"
ajv "^6.12.6"