fix(dcy-011/bat-022): GET /v1/admin/daemons 목록 엔드포인트 추가 — UI 계약 누락(405) 해소 (라이브 통합테스트 결함)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
This commit is contained in:
@@ -2289,6 +2289,19 @@ class PostgresPortfolioRepository:
|
||||
rows = cur.fetchall()
|
||||
return [self._row_to_daemon(row) for row in rows]
|
||||
|
||||
def list_daemons_all(self) -> list[Daemon]:
|
||||
"""Return all daemons across all owners (admin use only)."""
|
||||
self.ensure_schema()
|
||||
with self._connect().cursor() as cur:
|
||||
cur.execute(
|
||||
"""
|
||||
SELECT id, owner_user_id, daemon_slug, display_name, is_active, created_at, updated_at
|
||||
FROM daemons ORDER BY created_at ASC
|
||||
""",
|
||||
)
|
||||
rows = cur.fetchall()
|
||||
return [self._row_to_daemon(row) for row in rows]
|
||||
|
||||
def update_daemon(
|
||||
self,
|
||||
daemon_id: str,
|
||||
|
||||
Reference in New Issue
Block a user