Fix lint
parent
82f3dc923f
commit
9e6c52648b
|
@ -102,7 +102,6 @@ campaigns.route('/:id')
|
||||||
|
|
||||||
.delete((req, res, next) => {
|
.delete((req, res, next) => {
|
||||||
WarModel.find({campaign: req.params.id}, (err, wars) => {
|
WarModel.find({campaign: req.params.id}, (err, wars) => {
|
||||||
|
|
||||||
wars.forEach((item) => {
|
wars.forEach((item) => {
|
||||||
// delete linked appearances
|
// delete linked appearances
|
||||||
PlayerModel.find({warId: item._id}).remove().exec();
|
PlayerModel.find({warId: item._id}).remove().exec();
|
||||||
|
|
Loading…
Reference in New Issue