mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Only send relevant server data to frontend
This commit is contained in:
parent
b6513b6d50
commit
1cfaab7992
@ -64,14 +64,23 @@ exports.update = function(req, res){
|
||||
playwithsix.resolveDependencies(modsToResolve, function (err, mods) {
|
||||
if (!err && mods) {
|
||||
server.mods = removeDuplicates(server.mods.concat(mods));
|
||||
manager.save();
|
||||
}
|
||||
|
||||
manager.save();
|
||||
res.send(server);
|
||||
res.send({
|
||||
id: server.id,
|
||||
title: server.title,
|
||||
port: server.port,
|
||||
mods: server.mods,
|
||||
});
|
||||
});
|
||||
} else {
|
||||
manager.save();
|
||||
res.send(server);
|
||||
res.send({
|
||||
id: server.id,
|
||||
title: server.title,
|
||||
port: server.port,
|
||||
mods: server.mods,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user