Sfoglia il codice sorgente

Merge pull request #18453 from overleaf/em-fix-floating-promise

Fix no-floating-promises lint rule

GitOrigin-RevId: 58f89e0078abf72be65552f9468cb225e5758e3e
Eric Mc Sween 2 anni fa
parent
commit
a22319fe46

+ 1 - 1
services/web/app/src/Features/Subscription/RecurlyWrapper.js

@@ -865,7 +865,7 @@ const RecurlyWrapper = {
     promises
     promises
       .attemptInvoiceCollection(invoiceId)
       .attemptInvoiceCollection(invoiceId)
       .then(({ response, body }) => callback(null, response, body))
       .then(({ response, body }) => callback(null, response, body))
-      .catch(callback)
+      .catch(err => callback(err))
   },
   },
   createFixedAmmountCoupon: callbackify(promises.createFixedAmmountCoupon),
   createFixedAmmountCoupon: callbackify(promises.createFixedAmmountCoupon),
   getAccountActiveCoupons: callbackify(promises.getAccountActiveCoupons),
   getAccountActiveCoupons: callbackify(promises.getAccountActiveCoupons),