fix(server): make time field optional in session update validator (#5372)

This commit is contained in:
Sachnun 2025-12-12 09:06:15 +07:00 committed by GitHub
parent a9f27371cf
commit 237c0253c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) => {