refactor: collapse command facade (#21981)

This commit is contained in:
Kit Langton
2026-04-10 23:52:12 -04:00
committed by GitHub
parent d84cc33742
commit 5e3dc80999
4 changed files with 13 additions and 11 deletions

View File

@@ -191,7 +191,7 @@ export const InstanceRoutes = (upgrade: UpgradeWebSocket, app: Hono = new Hono()
},
}),
async (c) => {
const commands = await Command.list()
const commands = await AppRuntime.runPromise(Command.Service.use((svc) => svc.list()))
return c.json(commands)
},
)