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:
parent
8f104f67b1
commit
d8c2428094
1 changed files with 3 additions and 1 deletions
|
@ -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});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue