mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 14:45:41 +01:00
Assigned wallet var
This commit is contained in:
parent
d62ef0bb80
commit
9bbf78e026
@ -364,6 +364,7 @@ async def api_payments_sse(
|
||||
|
||||
@core_app.get("/api/v1/payments/{payment_hash}")
|
||||
async def api_payment(payment_hash, X_Api_Key: Optional[str] = Header(None)):
|
||||
wallet = None
|
||||
if X_Api_Key:
|
||||
wallet = await get_wallet_for_key(X_Api_Key)
|
||||
payment = await get_standalone_payment(payment_hash)
|
||||
|
Loading…
Reference in New Issue
Block a user