Skip to content

Commit 2b32787

Browse files
committed
fix: hubspot deal closedate can be string
1 parent 2fd2310 commit 2b32787

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vesselapi/integrations",
3-
"version": "1.0.37",
3+
"version": "1.0.38",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/platforms/hubspot/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export type HubspotContactUpdate = z.infer<
204204
const dealPropertiesSchema = z.object({
205205
amount: z.union([z.string(), z.number()]).nullable(),
206206
dealname: z.string().nullable(),
207-
closedate: custom.date().nullable(),
207+
closedate: custom.date().or(z.string()).nullable(),
208208
dealstage: z.string().nullable(),
209209
hs_deal_stage_probability: z.union([z.string(), z.number()]).nullable(),
210210
hs_projected_amount: z.union([z.string(), z.number()]).nullable(),

0 commit comments

Comments
 (0)