Forget to add getSquadByID method

This commit is contained in:
Levent007 2021-03-07 20:43:45 +01:00
parent d646329efc
commit 425df2725f

View File

@ -464,6 +464,13 @@ export default class SquadServer extends EventEmitter {
return null; return null;
} }
async getSquadByID(teamID, squadID) {
if (squadID === null) return null;
return this.getSquadByCondition(
(squad) => squad.teamID === teamID && squad.squadID === squadID
);
}
async getPlayerBySteamID(steamID, forceUpdate) { async getPlayerBySteamID(steamID, forceUpdate) {
return this.getPlayerByCondition((player) => player.steamID === steamID, forceUpdate); return this.getPlayerByCondition((player) => player.steamID === steamID, forceUpdate);
} }