Remove vehicle kill items from db on war delete

pull/36/head
HardiReady 2018-06-09 19:33:22 +02:00
parent fc5eaf868a
commit 236e445ca0
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ wars.route('/:id')
// delete linked appearances // delete linked appearances
PlayerModel.find({warId: item._id}).remove().exec(); PlayerModel.find({warId: item._id}).remove().exec();
LogKillModel.find({war: item._id}).remove().exec(); LogKillModel.find({war: item._id}).remove().exec();
LogVehicleKillModel.find({war: item._id}).remove().exec();
LogRespawnModel.find({war: item._id}).remove().exec(); LogRespawnModel.find({war: item._id}).remove().exec();
LogReviveModel.find({war: item._id}).remove().exec(); LogReviveModel.find({war: item._id}).remove().exec();
LogFlagModel.find({war: item._id}).remove().exec(); LogFlagModel.find({war: item._id}).remove().exec();