This commit is contained in:
parent
bb3c34d4fa
commit
64a1223c1d
@ -1,13 +0,0 @@
|
||||
services:
|
||||
tracker-test:
|
||||
build: .
|
||||
ports:
|
||||
- "8101:8100"
|
||||
environment:
|
||||
TRACKER_DATABASE_URL: postgresql+asyncpg://team_board:team_board@172.17.0.1:5432/team_board_test
|
||||
TRACKER_ENV: dev
|
||||
TRACKER_JWT_SECRET: dev-secret-not-for-production
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
@ -130,7 +130,7 @@ async def create_member(req: MemberCreate, db: AsyncSession = Depends(get_db)):
|
||||
|
||||
agent_cfg = None
|
||||
if req.agent_config:
|
||||
agent_cfg = AgentConfigOut(
|
||||
agent_cfg = AgentConfigSchema(
|
||||
capabilities=req.agent_config.capabilities,
|
||||
labels=req.agent_config.labels,
|
||||
chat_listen=req.agent_config.chat_listen,
|
||||
|
||||
@ -54,7 +54,7 @@ async def list_messages(
|
||||
offset: int = Query(0),
|
||||
db: AsyncSession = Depends(get_db),
|
||||
):
|
||||
q = select(Message).options(selectinload(Message.attachments), selectinload(Message.author))
|
||||
q = select(Message).options(selectinload(Message.attachments), selectinload(Message.author), selectinload(Message.actor))
|
||||
|
||||
if chat_id:
|
||||
q = q.where(Message.chat_id == uuid.UUID(chat_id))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user