fix(typo): customER

This commit is contained in:
SabreCat
2022-10-25 16:59:59 -05:00
committed by Phillip Thelen
parent b3d5a8d083
commit 742da1f2c6
+1 -1
View File
@@ -118,7 +118,7 @@ api.subscribe = async function subscribe (sku, user, receipt, headers, nextPayme
}
if (originalTransactionId) {
if (user && user.isSubscribed() && user.purchased.plan.customId !== originalTransactionId) {
if (user && user.isSubscribed() && user.purchased.plan.customerId !== originalTransactionId) {
throw new NotAuthorized(this.constants.RESPONSE_ALREADY_USED);
}
const existingUser = await User.findOne({