mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-08 18:40:29 +00:00
chore: generate
This commit is contained in:
parent
f25f1485d5
commit
ccb7669736
3 changed files with 71 additions and 69 deletions
|
|
@ -252,7 +252,9 @@ export const tuiHandlers = Layer.unwrap(
|
|||
payload: typeof TuiEvent.SessionSelect.properties.Type
|
||||
}) {
|
||||
const row = yield* Effect.sync(() =>
|
||||
Database.use((db) => db.select({ id: SessionTable.id }).from(SessionTable).where(eq(SessionTable.id, ctx.payload.sessionID)).get()),
|
||||
Database.use((db) =>
|
||||
db.select({ id: SessionTable.id }).from(SessionTable).where(eq(SessionTable.id, ctx.payload.sessionID)).get(),
|
||||
),
|
||||
)
|
||||
if (!row) return yield* new HttpApiError.NotFound({})
|
||||
yield* bus.publish(TuiEvent.SessionSelect, ctx.payload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue