0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

refactor: remove unused coerce

This commit is contained in:
bholmesdev 2024-02-14 17:14:58 -05:00
parent cb5682c0d2
commit bacf458bdb

View file

@ -132,7 +132,7 @@ const dateFieldSchema = z.object({
.union([
sqlSchema,
// transform to ISO string for serialization
z.coerce.date().transform((d) => d.toISOString()),
z.date().transform((d) => d.toISOString()),
])
.optional(),
}),