summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-08-02 13:26:22 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-08-02 13:26:22 -0700
commit9bdcf6cfbb28ddea3b2617ac8efcd6fd91dadc8e (patch)
tree181abfbd115459597398aa49963eb69d9de3b3db
parentb318ff3a5a3af054a43045fde506794001f568ee (diff)
downloadsendgrid-nodejs-9bdcf6cfbb28ddea3b2617ac8efcd6fd91dadc8e.zip
sendgrid-nodejs-9bdcf6cfbb28ddea3b2617ac8efcd6fd91dadc8e.tar.gz
sendgrid-nodejs-9bdcf6cfbb28ddea3b2617ac8efcd6fd91dadc8e.tar.bz2
Backwards compatibility fix
-rw-r--r--lib/sendgrid.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js
index 4150935..2b1ae77 100644
--- a/lib/sendgrid.js
+++ b/lib/sendgrid.js
@@ -26,7 +26,7 @@ function isValidResponse(response) {
* Helper to get a new empty request
*/
function getEmptyRequest(data) {
- let request = JSON.parse(JSON.stringify(emptyRequest));
+ var request = JSON.parse(JSON.stringify(emptyRequest));
if (data && typeof data === 'object') {
for (var key in data) {
if (data.hasOwnProperty(key)) {