From e26c977c6653fb870b4e29b5e6058375fbe45f21 Mon Sep 17 00:00:00 2001 From: Fabien 'egg' O'Carroll Date: Mon, 8 Aug 2022 19:10:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20saving=20membership=20se?= =?UTF-8?q?ttings=20(#15196)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ghost/core/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ghost/core/package.json b/ghost/core/package.json index 46eb5a8781..7cbb8ec016 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index f298947182..652dab652e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"