diff --git a/packages/nodes-base/nodes/Drift/ContactDescription.ts b/packages/nodes-base/nodes/Drift/ContactDescription.ts index ad5bc14d5a..146adefa7d 100644 --- a/packages/nodes-base/nodes/Drift/ContactDescription.ts +++ b/packages/nodes-base/nodes/Drift/ContactDescription.ts @@ -65,7 +65,7 @@ export const contactFields = [ ], }, }, - description: 'The email of the Contact', + description: 'The email of the contact.', }, { displayName: 'Additional Fields', @@ -89,14 +89,14 @@ export const contactFields = [ name: 'name', type: 'string', default: '', - description: 'The name of the Contact', + description: 'The name of the contact.', }, { displayName: 'Phone', name: 'phone', type: 'string', default: '', - description: 'The phone number associated with the Contact', + description: 'The phone number associated with the contact.', }, ], }, @@ -143,21 +143,21 @@ export const contactFields = [ name: 'email', type: 'string', default: '', - description: 'The email of the Contact', + description: 'The email of the contact.', }, { displayName: 'Name', name: 'name', type: 'string', default: '', - description: 'The name of the Contact', + description: 'The name of the contact.', }, { displayName: 'Phone', name: 'phone', type: 'string', default: '', - description: 'The phone number associated with the Contact', + description: 'The phone number associated with the contact.', }, ] }, diff --git a/packages/nodes-base/nodes/Drift/Drift.node.ts b/packages/nodes-base/nodes/Drift/Drift.node.ts index 95566dfb60..53a9a2695e 100644 --- a/packages/nodes-base/nodes/Drift/Drift.node.ts +++ b/packages/nodes-base/nodes/Drift/Drift.node.ts @@ -82,7 +82,7 @@ export class Drift implements INodeType { body.phone = additionalFields.phone as string; } responseData = await driftApiRequest.call(this, 'POST', '/contacts', { attributes: body }); - responseData = responseData.data + responseData = responseData.data; } //https://devdocs.drift.com/docs/updating-a-contact if (operation === 'update') { @@ -99,13 +99,13 @@ export class Drift implements INodeType { body.email = updateFields.email as string; } responseData = await driftApiRequest.call(this, 'PATCH', `/contacts/${contactId}`, { attributes: body }); - responseData = responseData.data + responseData = responseData.data; } //https://devdocs.drift.com/docs/retrieving-contact if (operation === 'get') { const contactId = this.getNodeParameter('contactId', i) as string; responseData = await driftApiRequest.call(this, 'GET', `/contacts/${contactId}`); - responseData = responseData.data + responseData = responseData.data; } //https://devdocs.drift.com/docs/listing-custom-attributes if (operation === 'getCustomAttributes') { diff --git a/packages/nodes-base/nodes/Drift/GenericFunctions.ts b/packages/nodes-base/nodes/Drift/GenericFunctions.ts index 3f798398c4..47b38a86e3 100644 --- a/packages/nodes-base/nodes/Drift/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Drift/GenericFunctions.ts @@ -42,7 +42,7 @@ export async function driftApiRequest(this: IExecuteFunctions | IWebhookFunction return await this.helpers.request!(options); } catch (error) { if (error.response) { - const errorMessage = error.message || (error.response.body && error.response.body.message ) + const errorMessage = error.message || (error.response.body && error.response.body.message ); throw new Error(`Drift error response [${error.statusCode}]: ${errorMessage}`); } throw error; diff --git a/packages/nodes-base/nodes/Drift/drift.png b/packages/nodes-base/nodes/Drift/drift.png index 82050d2ca8..98d008983c 100644 Binary files a/packages/nodes-base/nodes/Drift/drift.png and b/packages/nodes-base/nodes/Drift/drift.png differ diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index a99c9db2e3..6372676139 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -41,8 +41,8 @@ "dist/credentials/CodaApi.credentials.js", "dist/credentials/CopperApi.credentials.js", "dist/credentials/DisqusApi.credentials.js", - "dist/credentials/DropboxApi.credentials.js", "dist/credentials/DriftApi.credentials.js", + "dist/credentials/DropboxApi.credentials.js", "dist/credentials/EventbriteApi.credentials.js", "dist/credentials/FreshdeskApi.credentials.js", "dist/credentials/FileMaker.credentials.js", @@ -126,11 +126,11 @@ "dist/nodes/Copper/CopperTrigger.node.js", "dist/nodes/Cron.node.js", "dist/nodes/Crypto.node.js", + "dist/nodes/DateTime.node.js", "dist/nodes/Discord/Discord.node.js", "dist/nodes/Disqus/Disqus.node.js", - "dist/nodes/Dropbox/Dropbox.node.js", - "dist/nodes/DateTime.node.js", "dist/nodes/Drift/Drift.node.js", + "dist/nodes/Dropbox/Dropbox.node.js", "dist/nodes/EditImage.node.js", "dist/nodes/EmailReadImap.node.js", "dist/nodes/EmailSend.node.js",