Skip to content

Commit

Permalink
fix: hubspot deal closedate can be string
Browse files Browse the repository at this point in the history
  • Loading branch information
zlalvani committed Jul 25, 2023
1 parent 2fd2310 commit eea8000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/hubspot/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export type HubspotContactUpdate = z.infer<
const dealPropertiesSchema = z.object({
amount: z.union([z.string(), z.number()]).nullable(),
dealname: z.string().nullable(),
closedate: custom.date().nullable(),
closedate: custom.date().or(z.string()).nullable(),
dealstage: z.string().nullable(),
hs_deal_stage_probability: z.union([z.string(), z.number()]).nullable(),
hs_projected_amount: z.union([z.string(), z.number()]).nullable(),
Expand Down

0 comments on commit eea8000

Please sign in to comment.