mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
fix types
This commit is contained in:
parent
ed91976618
commit
8bf098cf47
1 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { and, desc, eq } from "@/storage"
|
||||
import type { Database } from "@/storage"
|
||||
import { and, desc, eq } from "@/storage/db"
|
||||
import type { Database } from "@/storage/db"
|
||||
import { SessionMessage } from "@/v2/session-message"
|
||||
import { SessionMessageUpdater } from "@/v2/session-message-updater"
|
||||
import { SessionEvent } from "@/v2/session-event"
|
||||
|
|
@ -25,7 +25,11 @@ function sqlite(db: Database.TxOrDb, sessionID: SessionID): SessionMessageUpdate
|
|||
db.update(SessionMessageTable)
|
||||
.set({ data })
|
||||
.where(
|
||||
and(eq(SessionMessageTable.id, id), eq(SessionMessageTable.session_id, sessionID), eq(SessionMessageTable.type, type)),
|
||||
and(
|
||||
eq(SessionMessageTable.id, id),
|
||||
eq(SessionMessageTable.session_id, sessionID),
|
||||
eq(SessionMessageTable.type, type),
|
||||
),
|
||||
)
|
||||
.run()
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue