overleaf/services
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
..
chat Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
clsi Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
contacts Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
docstore Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
document-updater Merge pull request #18906 from overleaf/em-migrate-existing-histories-2 2024-06-19 08:05:02 +00:00
filestore Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
git-bridge Merge pull request #18402 from overleaf/msm-git-bridge-pom 2024-06-17 08:04:21 +00:00
history-v1 Merge pull request #18088 from overleaf/ab-session-secret-rotation 2024-05-27 10:23:33 +00:00
notifications Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
project-history Merge pull request #18906 from overleaf/em-migrate-existing-histories-2 2024-06-19 08:05:02 +00:00
real-time Merge pull request #19098 from overleaf/jpa-graceful-shutdown-tests 2024-06-25 11:12:43 +00:00
spelling Explicitly specify latest version of async 2024-06-17 08:04:00 +00:00
web Fix institution metrics sendAll cron (#19127) 2024-06-26 08:05:11 +00:00