From 52fb304e69f8bbf5340a3e0f8e0d1de98005a8d7 Mon Sep 17 00:00:00 2001 From: James Homer Date: Fri, 14 Aug 2015 15:06:09 +0100 Subject: [PATCH] Update list.js --- lib/interface/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/interface/list.js b/lib/interface/list.js index 67c2b09..1ecbe72 100644 --- a/lib/interface/list.js +++ b/lib/interface/list.js @@ -19,7 +19,7 @@ List.prototype = { }, deactivateWebhook: function (webhookId, callback) { - this.createsend.delete('lists/' + this.listId + '/webhooks/.json' + webhookId, null, null, callback); + this.createsend.delete('lists/' + this.listId + '/webhooks/' + webhookId + '.json', null, null, callback); }, delete: function (callback) { @@ -89,4 +89,4 @@ List.prototype = { updateCustomFieldOptions: function (key, details, callback) { this.createsend.put('lists/' + this.listId + '/customfields/' + key + '/options.json', null, details, callback); } -}; \ No newline at end of file +};