diff --git a/website/server/libs/payments/apple.js b/website/server/libs/payments/apple.js index 36498b0e6d..b6d50626a9 100644 --- a/website/server/libs/payments/apple.js +++ b/website/server/libs/payments/apple.js @@ -155,7 +155,8 @@ api.subscribe = async function subscribe (sku, user, receipt, headers, nextPayme const existingUser = await User.findOne({ 'purchased.plan.customerId': originalTransactionId, }).exec(); - if (existingUser && (originalTransactionId === newTransactionId || existingUser._id !== user._id)) { + if (existingUser + && (originalTransactionId === newTransactionId || existingUser._id !== user._id)) { throw new NotAuthorized(this.constants.RESPONSE_ALREADY_USED); }