Add delet db entries player count on delete war
parent
f34a748d7f
commit
a3665b5476
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue