From 76c2a8757710c30d91b58f3aaba06612b4762bd8 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 25 Nov 2022 19:25:32 +0000 Subject: [PATCH] Auto stash before checking out "HEAD" --- lnbits/extensions/satspay/templates/satspay/index.html | 4 +++- lnbits/extensions/satspay/views_api.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/satspay/templates/satspay/index.html b/lnbits/extensions/satspay/templates/satspay/index.html index decf2b91..c3ae7686 100644 --- a/lnbits/extensions/satspay/templates/satspay/index.html +++ b/lnbits/extensions/satspay/templates/satspay/index.html @@ -949,7 +949,9 @@ }, created: async function () { console.log(this.admin) - await this.getThemes() + if(this.admin == "True"){ + await this.getThemes() + } await this.getCharges() await this.getWalletConfig() await this.getWalletLinks() diff --git a/lnbits/extensions/satspay/views_api.py b/lnbits/extensions/satspay/views_api.py index 5f0e72ce..d9defa2f 100644 --- a/lnbits/extensions/satspay/views_api.py +++ b/lnbits/extensions/satspay/views_api.py @@ -143,7 +143,7 @@ async def api_charge_balance(charge_id): try: r = await client.post( charge.webhook, - json=compact_charge(charge), + json=public_charge(charge), timeout=40, ) except AssertionError: