@dma-sdk/hubspot 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,7 +123,7 @@ class HubspotService {
|
|
|
123
123
|
async associateObjects(commandInput, accessToken) {
|
|
124
124
|
this.client.setAccessToken(accessToken);
|
|
125
125
|
const { objectTypeFirst, objectTypeSecond, objectIdFirst, objectIdSecond, options } = commandInput;
|
|
126
|
-
const response = await this.client.crm.associations.v4.basicApi.create(objectTypeFirst, objectIdFirst, objectTypeSecond, objectIdSecond, options);
|
|
126
|
+
const response = await this.client.crm.associations.v4.basicApi.create(objectTypeFirst, objectIdFirst, objectTypeSecond, objectIdSecond, options || []);
|
|
127
127
|
return response;
|
|
128
128
|
}
|
|
129
129
|
async createObjectProperties(objectType, properties, accessToken) {
|