Browse Source

Set response values to zero if None for /_synapse/admin/v1/federation/destinations (#16729)

tags/v1.98.0rc1
Will Hunt 5 months ago
committed by GitHub
parent
commit
ea783550bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      changelog.d/16729.bugfix
  2. +2
    -2
      synapse/rest/admin/federation.py

+ 1
- 0
changelog.d/16729.bugfix View File

@@ -0,0 +1 @@
Fix GET /_synapse/admin/v1/federation/destinations returning null (instead of 0) for `retry_last_ts` and `retry_interval`.

+ 2
- 2
synapse/rest/admin/federation.py View File

@@ -89,8 +89,8 @@ class ListDestinationsRestServlet(RestServlet):
"destinations": [
{
"destination": r[0],
"retry_last_ts": r[1],
"retry_interval": r[2],
"retry_last_ts": r[1] or 0,
"retry_interval": r[2] or 0,
"failure_ts": r[3],
"last_successful_stream_ordering": r[4],
}


Loading…
Cancel
Save