mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Set response values to zero if None for /_synapse/admin/v1/federation/destinations (#16729)
This commit is contained in:
parent
0bb8e418a4
commit
ea783550bb
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 New Issue
Block a user