mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(db-sync): runtime type error
This commit is contained in:
@@ -12,7 +12,10 @@ const WorkflowStateSchema = z.object({
|
||||
loops: z.record(z.any()),
|
||||
lastSaved: z.number().optional(),
|
||||
isDeployed: z.boolean().optional(),
|
||||
deployedAt: z.date().optional(),
|
||||
deployedAt: z
|
||||
.union([z.string(), z.date()])
|
||||
.optional()
|
||||
.transform((val) => (typeof val === 'string' ? new Date(val) : val)),
|
||||
})
|
||||
|
||||
const WorkflowSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user