Release v1.6.9 #24
|
@ -67,19 +67,24 @@ overview.route('/')
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
const s = squad.toObject();
|
|
||||||
s.members = squadMembers;
|
// do not return empty squads
|
||||||
s.memberCount = squadMembers.length;
|
if (squadMembers.length > 0) {
|
||||||
if (s.fraction === 'BLUFOR') {
|
const s = squad.toObject();
|
||||||
delete s.fraction;
|
s.members = squadMembers;
|
||||||
armyOverview.BLUFOR.squads.push(s);
|
s.memberCount = squadMembers.length;
|
||||||
countBlufor += s.members.length;
|
if (s.fraction === 'BLUFOR') {
|
||||||
}
|
delete s.fraction;
|
||||||
if (s.fraction === 'OPFOR') {
|
armyOverview.BLUFOR.squads.push(s);
|
||||||
delete s.fraction;
|
countBlufor += s.members.length;
|
||||||
armyOverview.OPFOR.squads.push(s);
|
}
|
||||||
countOpfor += s.members.length;
|
if (s.fraction === 'OPFOR') {
|
||||||
|
delete s.fraction;
|
||||||
|
armyOverview.OPFOR.squads.push(s);
|
||||||
|
countOpfor += s.members.length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -66,7 +66,7 @@ export class WarDetailComponent {
|
||||||
this.fractionStatsInitialized = true;
|
this.fractionStatsInitialized = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
window.scroll({left: 0, top: 0, behavior: 'smooth'});
|
window.scrollTo({left: 0, top: 0, behavior: 'smooth'});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue