Skip to content

Commit d4d2430

Browse files
committed
Fixed write types
1 parent 2a85184 commit d4d2430

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/templates/zod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ const pgTypeToZodSchema = (
185185
return 'z.coerce.date()'
186186
} else {
187187
// Write shapes: only Date in, string out (ISO)
188-
return 'z.instanceof(Date).transform(d => d.toISOString())'
188+
// return 'z.instanceof(Date).transform(d => d.toISOString())'
189+
return 'z.string()'
189190
}
190191
}
191192

0 commit comments

Comments
 (0)