Update crud.py (#9)
The short url is available for each lnurlw, and with six digits probably far from "safe". I propose to revert to the previous 22 digits.
This commit is contained in:
parent
ab4c9880be
commit
41971f1e08
1 changed files with 1 additions and 1 deletions
2
crud.py
2
crud.py
|
|
@ -12,7 +12,7 @@ from .models import CreateWithdrawData, HashCheck, WithdrawLink
|
|||
async def create_withdraw_link(
|
||||
data: CreateWithdrawData, wallet_id: str
|
||||
) -> WithdrawLink:
|
||||
link_id = urlsafe_short_hash()[:6]
|
||||
link_id = urlsafe_short_hash()[:22]
|
||||
available_links = ",".join([str(i) for i in range(data.uses)])
|
||||
await db.execute(
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue