Skip to content

Commit b4bfad4

Browse files
authored
fix: hubspot hs_attachment_ids is string (#248)
1 parent ca1e313 commit b4bfad4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.35",
3+
"version": "1.0.36",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/platforms/hubspot/actions/mappers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const transformEmail = (email: HubspotEmail) => {
135135
hsEmailSubject: email.properties.hs_email_subject,
136136
hsEmailBounceErrorDetailStatusCode:
137137
email.properties.hs_email_bounce_error_detail_status_code,
138-
hsAttachmentIds: email.properties.hs_attachment_ids,
138+
hsAttachmentIds: email.properties.hs_attachment_ids?.split(';'),
139139
hsTimestamp: email.properties.hs_timestamp,
140140
hsEmailStatus: email.properties.hs_email_status,
141141
hubspotOwnerId: email.properties.hubspot_owner_id,

src/platforms/hubspot/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const emailPropertiesSchema = z.object({
399399
.number()
400400
.or(z.string())
401401
.nullable(),
402-
hs_attachment_ids: z.array(hubspotIdSchema).nullable(),
402+
hs_attachment_ids: z.string().nullable(),
403403
hs_timestamp: custom.date().nullable(),
404404
hs_email_status: z.string().nullable(),
405405
hubspot_owner_id: hubspotIdSchema.nullable(),

0 commit comments

Comments
 (0)