[BUG] use WalletType for get_wallet_for_key fn (#1896)

This commit is contained in:
dni ⚡ 2023-08-24 08:26:34 +02:00 committed by GitHub
parent fe88320f08
commit 2ab18544c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,9 @@ async def get_wallet(
async def get_wallet_for_key(
key: str, key_type: str = "invoice", conn: Optional[Connection] = None
key: str,
key_type: WalletType = WalletType.invoice,
conn: Optional[Connection] = None,
) -> Optional[Wallet]:
row = await (conn or db).fetchone(
"""