mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix(server): make time field optional in session update validator (#5372)
This commit is contained in:
parent
a9f27371cf
commit
237c0253c2
1 changed files with 5 additions and 3 deletions
|
|
@ -791,9 +791,11 @@ export namespace Server {
|
|||
"json",
|
||||
z.object({
|
||||
title: z.string().optional(),
|
||||
time: z.object({
|
||||
archived: z.number().optional(),
|
||||
}),
|
||||
time: z
|
||||
.object({
|
||||
archived: z.number().optional(),
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
),
|
||||
async (c) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue