Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/calculate_contract_end_date.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down