0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Updated product hashseed to be hardcoded (#10484)

no-issue
This commit is contained in:
Fabien O'Carroll 2019-02-13 11:19:43 +01:00 committed by GitHub
parent 5472aa61ac
commit a3e7a7b3ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ const getPlanHashSeed = (plan, product) => {
return product.id + plan.interval + plan.currency + plan.amount;
};
const getProductHashSeed = product => product.name;
const getProductHashSeed = () => 'Ghost Subscription';
const getCustomerHashSeed = member => member.email;
const plans = createApi('plans', isActive, getPlanAttr, getPlanHashSeed);