From 742da1f2c6b3ac592ff883564dd64e31d7e10d50 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Tue, 25 Oct 2022 16:59:59 -0500 Subject: [PATCH] fix(typo): customER --- website/server/libs/payments/apple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/libs/payments/apple.js b/website/server/libs/payments/apple.js index b9686c265f..e54477a19a 100644 --- a/website/server/libs/payments/apple.js +++ b/website/server/libs/payments/apple.js @@ -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({