fix: force default value initialisation

This commit is contained in:
Vlad Stan
2022-11-29 14:01:57 +02:00
parent c81897184d
commit eac55e9662
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -16,6 +16,7 @@ from .models import Charges, CreateCharge, SatsPayThemes
async def create_charge(user: str, data: CreateCharge) -> Charges:
data = CreateCharge(**data.dict())
charge_id = urlsafe_short_hash()
if data.onchainwallet:
config = await get_config(user)