/sse returns payment as objects instead of arrays.

This commit is contained in:
fiatjaf 2020-10-09 21:08:01 -03:00
parent 1d00060419
commit 31820e041c

View File

@ -164,7 +164,7 @@ async def api_payments_sse():
message = [f"event: {typ}".encode("utf-8")]
if data:
jdata = json.dumps(data)
jdata = json.dumps(data._asdict())
message.append(f"data: {jdata}".encode("utf-8"))
yield b"\n".join(message) + b"\r\n\r\n"