chore: generate

This commit is contained in:
GitHub Action
2026-01-21 02:39:31 +00:00
parent cbe20d22d3
commit dac73572e0
3 changed files with 40 additions and 24 deletions

View File

@@ -276,12 +276,16 @@ export const SessionRoutes = lazy(() =>
const sessionID = c.req.valid("param").sessionID
const updates = c.req.valid("json")
const updatedSession = await Session.update(sessionID, (session) => {
if (updates.title !== undefined) {
session.title = updates.title
}
if (updates.time?.archived !== undefined) session.time.archived = updates.time.archived
}, { touch: false })
const updatedSession = await Session.update(
sessionID,
(session) => {
if (updates.title !== undefined) {
session.title = updates.title
}
if (updates.time?.archived !== undefined) session.time.archived = updates.time.archived
},
{ touch: false },
)
return c.json(updatedSession)
},