From 5fc6a051e9199514719fd732734fcead09149f27 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Thu, 30 Jul 2015 11:14:15 +0800 Subject: [PATCH] add args even with attachment --- lib/node-trello.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node-trello.js b/lib/node-trello.js index b1b982d..2619b71 100644 --- a/lib/node-trello.js +++ b/lib/node-trello.js @@ -72,6 +72,9 @@ Trello.prototype.request = function (method, uri, argsOrCallback, callback) { token: this.token }; + for (var key in args) { + options.formData[key] = args[key]; + } if (typeof args.attachment === "string" || args.attachment instanceof String) { options.formData.url = args.attachment; }