From e2c186389fd67c88ecf3415b0f475880e71dc57c Mon Sep 17 00:00:00 2001 From: Takazz <48321775+Takazz@users.noreply.github.com> Date: Fri, 21 Apr 2023 12:29:36 +0200 Subject: [PATCH] Update calculate_contract_end_date.js Updated response schemas to support latest api-client version --- samples/calculate_contract_end_date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/calculate_contract_end_date.js b/samples/calculate_contract_end_date.js index ff4e089..b5d93d3 100644 --- a/samples/calculate_contract_end_date.js +++ b/samples/calculate_contract_end_date.js @@ -15,8 +15,8 @@ const hubspot = require('@hubspot/api-client'); .then(results => { // Store properties in variables - let startDate = results.body.properties.start_date; - let duration = results.body.properties.duration; + let startDate = results.properties.start_date; + let duration = results.properties.duration; // Calculate the end date from the variables input let d = new Date(startDate)