Skip to content

Commit

Permalink
remove buildteam from servers and regions objects
Browse files Browse the repository at this point in the history
  • Loading branch information
MineFact committed Dec 14, 2023
1 parent c8f1d84 commit a8d9071
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/struct/core/buildteam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,17 @@ export default class BuildTeam {
info.APIKey = undefined;

info.Servers = this.network.buildTeamServers.filter((server: any) => server.BuildTeam == info.ID);

// Remove BuildTeam from each server in the Servers array
for(const server of info.Servers)
server.BuildTeam = undefined;

info.Regions = this.network.buildTeamRegions.filter((region: any) => region.BuildTeam == info.ID);

// Remove BuildTeam from each region in the Regions array
for(const region of info.Regions)
region.BuildTeam = undefined;

this.buildTeamInfo = info;

return info;
Expand Down

0 comments on commit a8d9071

Please sign in to comment.