mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
[BUG] use WalletType for get_wallet_for_key fn (#1896)
This commit is contained in:
parent
fe88320f08
commit
2ab18544c3
@ -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(
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user