Remove vehicle kill items from db on war delete
parent
fc5eaf868a
commit
236e445ca0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue