Use team channel instead of team id for roster fix

This commit is contained in:
yflory 2024-08-29 16:46:12 +02:00
parent fddf4a0753
commit f1571d2bad
1 changed files with 2 additions and 2 deletions

View File

@ -209,10 +209,10 @@ define([
var n = nThen;
Object.keys(proxy.teams || {}).forEach(function (id) {
// If we're in "repair" mode, only load the affected team
if (!report && Number(fixRoster) !== Number(id)) { return; }
var obj = proxy.teams[id];
if (!report && fixRoster !== obj.channel) { return; }
n = n(function (w) {
var next = w();
var obj = proxy.teams[id];
var team;
addReport('Load team. ID: ' + id + '. Channel ID: '+ obj.channel);
addReport('Roster channel: ' + obj.keys.roster.channel);