mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-10 12:59:43 +02:00
pending=False on /sse payments.
This commit is contained in:
parent
31820e041c
commit
2894944b1e
@ -164,7 +164,7 @@ async def api_payments_sse():
|
||||
message = [f"event: {typ}".encode("utf-8")]
|
||||
|
||||
if data:
|
||||
jdata = json.dumps(data._asdict())
|
||||
jdata = json.dumps(dict(data._asdict(), pending=False))
|
||||
message.append(f"data: {jdata}".encode("utf-8"))
|
||||
|
||||
yield b"\n".join(message) + b"\r\n\r\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user