overleaf/services/web/scripts/recurly
Antoine Clausse de959fb7b9 Fix institution metrics sendAll cron (#19127)
* Don't send status 200 in the beginning: we may throw later

This was causing `Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client`
https://cloudlogging.app.goo.gl/Bchegw2iCYLxhPNk8

* Continue when failing to send one email, but log the error

* Revert "Don't send status 200...", log error instead

This reverts commit 3e13559704f822e330a18a68567f46491649f222.

* Fix `logger.error` params

* Fixup: good syntax for `logger.error`

* Remove useless `OError` import

* Update services/web/modules/metrics/app/src/MetricsEmailController.js

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Update services/web/modules/metrics/app/src/MetricsEmailController.js

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Update services/web/modules/metrics/app/src/MetricsEmailController.js

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Update services/web/scripts/recurly/collect_paypal_past_due_invoice.js

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: c68bc677326729fc6c39b7c2f027e35ebb776bd2
2024-06-26 08:05:11 +00:00
..
change_prices_at_renewal.js Merge pull request #11435 from overleaf/em-price-increase-script 2023-01-26 09:04:21 +00:00
collect_paypal_past_due_invoice.js Fix institution metrics sendAll cron (#19127) 2024-06-26 08:05:11 +00:00
Gemfile Merge pull request #1107 from sharelatex/ja-purchase-groups 2018-11-13 13:50:46 +00:00
generate_recurly_prices.js Merge pull request #12816 from overleaf/bg-recurly-scripts-cleanup 2023-04-27 08:05:52 +00:00
get_paypal_accounts_csv.js Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
get_recurly_group_prices.js convert price_in_unit to price_in_cents 2022-01-21 09:03:29 +00:00
recurly_prices.js Merge pull request #12816 from overleaf/bg-recurly-scripts-cleanup 2023-04-27 08:05:52 +00:00
resync_subscriptions.js Merge pull request #18850 from overleaf/ac-promisify-resync-subscriptions 2024-06-26 08:04:57 +00:00
sync_recurly.rb Set tax type to digital in Recurly plans script 2018-11-13 15:02:30 +00:00