mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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
|
||||
async.parallel([
|
||||
((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) =>
|
||||
callback(err, payments)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue