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 2b32787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vesselapi/integrations",
"version": "1.0.37",
"version": "1.0.38",
"description": "Vessel integrations",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
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 2b32787

Please sign in to comment.