[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

View File

@@ -281,7 +281,9 @@ async def get_wallet(
async def get_wallet_for_key( 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]: ) -> Optional[Wallet]:
row = await (conn or db).fetchone( row = await (conn or db).fetchone(
""" """