mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Updated to playwithsix 0.0.2
This commit is contained in:
parent
5e41b6ac40
commit
9684f74a5a
@ -10,6 +10,6 @@
|
|||||||
"when": "~3.1.0",
|
"when": "~3.1.0",
|
||||||
"gamedig": "^0.2.4",
|
"gamedig": "^0.2.4",
|
||||||
"ip": "^0.3.0",
|
"ip": "^0.3.0",
|
||||||
"playwithsix": "0.0.1"
|
"playwithsix": "0.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ exports.index = function(req, res){
|
|||||||
return file.charAt(0) == "@";
|
return file.charAt(0) == "@";
|
||||||
});
|
});
|
||||||
|
|
||||||
playwithsix.checkOutdated(config.path, function (outdatedMods, err) {
|
playwithsix.checkOutdated(config.path, function (err, outdatedMods) {
|
||||||
res.send(mods.map(function (mod) {
|
res.send(mods.map(function (mod) {
|
||||||
return { name: mod, outdated: outdatedMods.indexOf(mod) >= 0 };
|
return { name: mod, outdated: outdatedMods.indexOf(mod) >= 0 };
|
||||||
}));
|
}));
|
||||||
@ -66,7 +66,7 @@ exports.index = function(req, res){
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.create = 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) {
|
if (mods && !err) {
|
||||||
res.send(mods);
|
res.send(mods);
|
||||||
} else {
|
} else {
|
||||||
@ -85,7 +85,7 @@ exports.show = function(req, res){
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.update = 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) {
|
if (mods && !err) {
|
||||||
res.send(mods);
|
res.send(mods);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user