mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 19:04:23 +00:00
refactor(db): strictly type PiSessionEntryData in prisma-json-types and clean up casts
This commit is contained in:
@@ -155,7 +155,7 @@ export class DatabaseSessionStorage implements SessionStorage<DatabaseSessionMet
|
||||
type: entry.type,
|
||||
parentId: entry.parentId || null,
|
||||
createdAt: entry.timestamp ? new Date(entry.timestamp) : new Date(),
|
||||
data: payload as unknown as PrismaJson.PiSessionEntryData,
|
||||
data: payload as PrismaJson.PiSessionEntryData,
|
||||
},
|
||||
}),
|
||||
prisma.agentSession.update({
|
||||
|
||||
Reference in New Issue
Block a user