0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added portal products data to member site endpoint (#13053)

refs https://github.com/TryGhost/Team/issues/768

- adds `portal_product` settings data to the member site endpoint for Portal behind the `multipleProducts` flag
This commit is contained in:
Rishabh Garg 2021-06-21 14:41:15 +05:30 committed by GitHub
parent 8f104f67b1
commit d8c2428094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,9 @@ const getMemberSiteData = async function (req, res) {
prices,
products
};
if (labsService.isSet('multipleProducts')) {
response.portal_products = settingsCache.get('portal_products');
}
res.json({site: response});
};