From 9684f74a5a467d22faf21f6b83981f55e60dd97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Dahlgren?= Date: Thu, 22 May 2014 00:13:14 +0200 Subject: [PATCH] Updated to playwithsix 0.0.2 --- package.json | 2 +- routes/mods.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 25bf52a..01b6a29 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,6 @@ "when": "~3.1.0", "gamedig": "^0.2.4", "ip": "^0.3.0", - "playwithsix": "0.0.1" + "playwithsix": "0.0.2" } } diff --git a/routes/mods.js b/routes/mods.js index 3040234..14c0898 100644 --- a/routes/mods.js +++ b/routes/mods.js @@ -56,7 +56,7 @@ exports.index = function(req, res){ return file.charAt(0) == "@"; }); - playwithsix.checkOutdated(config.path, function (outdatedMods, err) { + playwithsix.checkOutdated(config.path, function (err, outdatedMods) { res.send(mods.map(function (mod) { return { name: mod, outdated: outdatedMods.indexOf(mod) >= 0 }; })); @@ -66,7 +66,7 @@ exports.index = function(req, res){ }; exports.create = function(req, res){ - downloadMod(req.body.name, function (mods, err) { + downloadMod(req.body.name, function (err, mods) { if (mods && !err) { res.send(mods); } else { @@ -85,7 +85,7 @@ exports.show = function(req, res){ }; exports.update = function(req, res){ - downloadMod(req.params.mod, function (mods, err) { + downloadMod(req.params.mod, function (err, mods) { if (mods && !err) { res.send(mods); } else {