mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Fixed bug with checkStripeCharges also trying to match iOS charges.
This commit is contained in:
parent
0cee873157
commit
760f2d35bb
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ PaymentHandler = class PaymentHandler extends Handler
|
||||||
return @sendSuccess(res) unless customerID = req.user.get('stripe')?.customerID
|
return @sendSuccess(res) unless customerID = req.user.get('stripe')?.customerID
|
||||||
async.parallel([
|
async.parallel([
|
||||||
((callback) ->
|
((callback) ->
|
||||||
criteria = { recipient: req.user._id, 'stripe.invoiceID': { $exists: false } }
|
criteria = { recipient: req.user._id, 'stripe.invoiceID': { $exists: false }, 'ios.transactionID': { $exists: false } }
|
||||||
Payment.find(criteria).limit(100).sort({_id:-1}).exec((err, payments) =>
|
Payment.find(criteria).limit(100).sort({_id:-1}).exec((err, payments) =>
|
||||||
callback(err, payments)
|
callback(err, payments)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue