From 497cc89a0734a4854b8ce66068a236652cdeaf81 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 5 Apr 2016 22:17:40 -0700 Subject: [PATCH] fix graphite api call --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 01724b8..b880cb2 100644 --- a/cloudron.js +++ b/cloudron.js @@ -308,7 +308,7 @@ Cloudron.prototype.checkA = function (callback) { Cloudron.prototype._checkGraphs = function (targets, from) { var params = { - target: targets, + target: targets.length === 1 ? targets[0] : targets, format: 'json', from: from, access_token: this._credentials.accessToken