mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Fixed crash when PWS is not available and checking for outdated mods
This commit is contained in:
parent
b6d045d68a
commit
5b736432d0
@ -70,7 +70,7 @@ exports.index = function(req, res){
|
||||
async.map(mods, function (mod, cb) {
|
||||
var modPath = path.join(config.path, mod);
|
||||
isPlayWithSixMod(modPath, function (isPlayWithSixMod) {
|
||||
cb(null, { name: mod, outdated: outdatedMods.indexOf(mod) >= 0, playWithSix: isPlayWithSixMod });
|
||||
cb(null, { name: mod, outdated: outdatedMods && outdatedMods.indexOf(mod) >= 0, playWithSix: isPlayWithSixMod });
|
||||
});
|
||||
}, function (err, mods) {
|
||||
res.send(mods);
|
||||
|
Loading…
Reference in New Issue
Block a user