Updated to playwithsix 0.0.2

This commit is contained in:
Björn Dahlgren 2014-05-22 00:13:14 +02:00
parent 5e41b6ac40
commit 9684f74a5a
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,6 @@
"when": "~3.1.0",
"gamedig": "^0.2.4",
"ip": "^0.3.0",
"playwithsix": "0.0.1"
"playwithsix": "0.0.2"
}
}

View File

@ -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 {