feat: 1-to-1 message render + web data-lake backend
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import asyncpg
|
||||
|
||||
from utils.read.models import AccountView
|
||||
|
||||
|
||||
async def list_accounts(pool: asyncpg.Pool) -> list[AccountView]:
|
||||
rows = await pool.fetch(
|
||||
"SELECT account_id, label, phone, tg_user_id, is_active FROM accounts "
|
||||
"ORDER BY account_id"
|
||||
)
|
||||
return [AccountView(**dict(row)) for row in rows]
|
||||
Reference in New Issue
Block a user