fix: wallet not found error (#1063)

This commit is contained in:
Vlad Stan
2022-10-20 16:40:23 +02:00
committed by GitHub
parent 42704eaf1b
commit 9de38f908b
6 changed files with 33 additions and 31 deletions
+17
View File
@@ -0,0 +1,17 @@
from .models import Charges
def compact_charge(charge: Charges):
return {
"id": charge.id,
"description": charge.description,
"onchainaddress": charge.onchainaddress,
"payment_request": charge.payment_request,
"payment_hash": charge.payment_hash,
"time": charge.time,
"amount": charge.amount,
"balance": charge.balance,
"paid": charge.paid,
"timestamp": charge.timestamp,
"completelink": charge.completelink, # should be secret?
}