Просмотр исходного кода

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

Fix no-floating-promises lint rule

GitOrigin-RevId: 58f89e0078abf72be65552f9468cb225e5758e3e
Eric Mc Sween 2 лет назад
Родитель
Сommit
a22319fe46
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/src/Features/Subscription/RecurlyWrapper.js

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

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