mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Set response values to zero if None for /_synapse/admin/v1/federation/destinations (#16729)
This commit is contained in:
parent
0bb8e418a4
commit
ea783550bb
2 changed files with 3 additions and 2 deletions
1
changelog.d/16729.bugfix
Normal file
1
changelog.d/16729.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix GET /_synapse/admin/v1/federation/destinations returning null (instead of 0) for `retry_last_ts` and `retry_interval`.
|
|
@ -89,8 +89,8 @@ class ListDestinationsRestServlet(RestServlet):
|
||||||
"destinations": [
|
"destinations": [
|
||||||
{
|
{
|
||||||
"destination": r[0],
|
"destination": r[0],
|
||||||
"retry_last_ts": r[1],
|
"retry_last_ts": r[1] or 0,
|
||||||
"retry_interval": r[2],
|
"retry_interval": r[2] or 0,
|
||||||
"failure_ts": r[3],
|
"failure_ts": r[3],
|
||||||
"last_successful_stream_ordering": r[4],
|
"last_successful_stream_ordering": r[4],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue