Fixed bug with checkStripeCharges also trying to match iOS charges.

This commit is contained in:
Nick Winter 2015-02-09 08:31:44 -08:00
parent 0cee873157
commit 760f2d35bb

View file

@ -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)
)