Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Coerce values for license validation response
Luke Vella6e7253971f9d
diff --git a/apps/web/src/features/licensing/schema.ts b/apps/web/src/features/licensing/schema.tsindex 96e2884a0..7f27f70ff 100644--- a/apps/web/src/features/licensing/schema.ts+++ b/apps/web/src/features/licensing/schema.ts@@ -63,13 +63,13 @@ export const validateLicenseKeyResponseSchema = apiResponseSchema(key: z.string(),valid: z.boolean(),status: licenseStatusSchema,- issuedAt: z.date(),- expiresAt: z.date().nullable(),+ issuedAt: z.coerce.date(),+ expiresAt: z.coerce.date().nullable(),licenseeEmail: z.string().nullable(),licenseeName: z.string().nullable(),- seats: z.number().nullable(),+ seats: z.coerce.number().nullable(),type: licenseTypeSchema,- version: z.number().nullable(),+ version: z.coerce.number().nullable(),}),);