Add max_daily_limit_gtq field to lamassu_config: Updated database schema and models to include max_daily_limit_gtq for configurable client limits. Enhanced API and frontend to support this new field, ensuring proper handling and validation in the user interface.
This commit is contained in:
parent
ae50db10c7
commit
7af0e47d48
6 changed files with 75 additions and 3 deletions
7
crud.py
7
crud.py
|
|
@ -306,9 +306,9 @@ async def create_lamassu_config(data: CreateLamassuConfigData) -> LamassuConfig:
|
|||
"""
|
||||
INSERT INTO satoshimachine.lamassu_config
|
||||
(id, host, port, database_name, username, password, source_wallet_id, commission_wallet_id, is_active, created_at, updated_at,
|
||||
use_ssh_tunnel, ssh_host, ssh_port, ssh_username, ssh_password, ssh_private_key)
|
||||
use_ssh_tunnel, ssh_host, ssh_port, ssh_username, ssh_password, ssh_private_key, max_daily_limit_gtq)
|
||||
VALUES (:id, :host, :port, :database_name, :username, :password, :source_wallet_id, :commission_wallet_id, :is_active, :created_at, :updated_at,
|
||||
:use_ssh_tunnel, :ssh_host, :ssh_port, :ssh_username, :ssh_password, :ssh_private_key)
|
||||
:use_ssh_tunnel, :ssh_host, :ssh_port, :ssh_username, :ssh_password, :ssh_private_key, :max_daily_limit_gtq)
|
||||
""",
|
||||
{
|
||||
"id": config_id,
|
||||
|
|
@ -327,7 +327,8 @@ async def create_lamassu_config(data: CreateLamassuConfigData) -> LamassuConfig:
|
|||
"ssh_port": data.ssh_port,
|
||||
"ssh_username": data.ssh_username,
|
||||
"ssh_password": data.ssh_password,
|
||||
"ssh_private_key": data.ssh_private_key
|
||||
"ssh_private_key": data.ssh_private_key,
|
||||
"max_daily_limit_gtq": data.max_daily_limit_gtq
|
||||
}
|
||||
)
|
||||
return await get_lamassu_config(config_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue