fix check
This commit is contained in:
committed by
Phillip Thelen
parent
9a40674d8d
commit
b5f2e66025
@@ -118,7 +118,7 @@ api.subscribe = async function subscribe (sku, user, receipt, headers, nextPayme
|
||||
}
|
||||
|
||||
if (originalTransactionId) {
|
||||
if (user && user.purchased.plan.customId !== originalTransactionId) {
|
||||
if (user && user.isSubscribed() && user.purchased.plan.customId !== originalTransactionId) {
|
||||
throw new NotAuthorized(this.constants.RESPONSE_ALREADY_USED);
|
||||
}
|
||||
const existingUser = await User.findOne({
|
||||
|
||||
Reference in New Issue
Block a user