diff --git a/website/server/libs/googlePayments.js b/website/server/libs/googlePayments.js index a23d6fe526..5c7546cfb6 100644 --- a/website/server/libs/googlePayments.js +++ b/website/server/libs/googlePayments.js @@ -107,7 +107,7 @@ api.subscribe = async function subscribe (sku, user, receipt, signature, headers let token = receiptObj.token || receiptObj.purchaseToken; let existingUser = await User.findOne({ - 'payments.plan.customerId': token, + 'purchased.plan.customerId': token, }).exec(); if (existingUser) throw new NotAuthorized(this.constants.RESPONSE_ALREADY_USED);