From 69c15be5190c23d175f9ea152186777aa5fc6b17 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Fri, 27 Jan 2017 10:37:07 +1100 Subject: [PATCH] Updated habitrpg call to include URL, resolving #57 in upstream. --- habitSync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/habitSync.js b/habitSync.js index 34ad45a..9927273 100644 --- a/habitSync.js +++ b/habitSync.js @@ -142,7 +142,7 @@ habitSync.prototype.getTodoistSync = function(cb) { habitSync.prototype.syncItemsToHabitRpg = function(items, cb) { var self = this - var habit = new habitapi(self.uid, self.token, null, 'v2'); + var habit = new habitapi(self.uid, self.token, 'https://habitica.com/api/v3', 'v2'); // Cannot execute in parallel. See: https://github.com/HabitRPG/habitrpg/issues/2301 async.eachSeries(items, function(item, next) { async.waterfall([