Add delet db entries player count on delete war

pull/51/head
HardiReady 2019-02-09 12:41:02 +01:00
parent f34a748d7f
commit a3665b5476
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,6 @@ wars.route('/')
return next(err);
}
console.log(statsResult.playerCount)
LogKillModel.create(statsResult.kills, () => {
LogVehicleKillModel.create(statsResult.vehicles, () => {
LogRespawnModel.create(statsResult.respawn, () => {
@ -182,6 +181,7 @@ wars.route('/:id')
LogBudgetModel.find({war: item._id}).remove().exec();
LogTransportModel.find({war: item._id}).remove().exec();
LogPointsModel.find({war: item._id}).remove().exec();
LogPlayerCountModel.find({war: item._id}).remove().exec();
// check if logfiles exist and delete from fs
const warDir = resourceLocation + req.params.id;