mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
aa7839876a
* Reapply "[web] Promisify MetricsEmailController and InstitutionHubsController …" This reverts commit ea14df1395f1dc2fa7d41fc7837849f9686425b5. * Fix changes to node-fetch: `statusCode` -> `status` (!!) * Update test * Handle no-content without throwing (!) Avoid error `Unexpected end of JSON input` when doing `response.json()` on an empty response when status is 204 Related: https://github.com/node-fetch/node-fetch/issues/165 * Also return `204` when no data in departments_data and roles_data * Revert "Handle no-content without throwing (!)", and return null instead This reverts commits 3baa779f7a9e64804e54a276faf865ab9252f336 and 51507a3d763d7006c8b01414a7c79bd3f3b6948b. * Update tests: `assert_nil` * Fixup: Update tests: assert null * Use `fetchJSON` in Institution.fetchV1Data * Proxy errors from server without throwing 500 GitOrigin-RevId: 9c13e293f3fed3abd2accddd1a9060ed02b96ba2 |
||
---|---|---|
.. | ||
src | ||
templates | ||
views |