summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2023-12-05 11:40:27 +0000
committerGitHub <noreply@github.com>2023-12-05 11:40:27 +0000
commitea783550bb8098f7c37e6ebfa83902108f377890 (patch)
treec2c3f66486fc972d3396791e30fb2613869b23e8 /synapse
parentFix postgres schema after dropping old tables (#16730) (diff)
downloadsynapse-ea783550bb8098f7c37e6ebfa83902108f377890.tar.xz
Set response values to zero if None for /_synapse/admin/v1/federation/destinations (#16729)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/admin/federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/federation.py b/synapse/rest/admin/federation.py

index a6ce787da1..2f238f0217 100644 --- a/synapse/rest/admin/federation.py +++ b/synapse/rest/admin/federation.py
@@ -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], }