From 5bf30ae28171758e7e2f9c4e1d35e14c49b8f5d1 Mon Sep 17 00:00:00 2001 From: Jon <> Date: Wed, 21 Aug 2024 09:28:12 +0100 Subject: [PATCH] Added debug info for unassigned bots --- GuildWarsPartySearch.NodeJSServer/server.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GuildWarsPartySearch.NodeJSServer/server.mjs b/GuildWarsPartySearch.NodeJSServer/server.mjs index c6b2a83..fd5a469 100644 --- a/GuildWarsPartySearch.NodeJSServer/server.mjs +++ b/GuildWarsPartySearch.NodeJSServer/server.mjs @@ -293,6 +293,13 @@ function reassign_bot_clients(request) { console.log("bots_assigned",bots_assigned.map((map_assigned) => { return {map_id:map_assigned.map_id,district_region:map_assigned.district_region, client_id:map_assigned.bot_client.client_id}; })); + + if(bots_to_reassign.length) { + console.log("Bots not assigned!!!",bots_to_reassign.map((bot_client) => { + return {map_id:bot_client.map_id,district_region:bot_client.district_region,client_id:bot_client.client_id}; + })) + } + bots_assigned.forEach((map_assigned) => { if(map_assigned.bot_client.map_id === map_assigned.map_id && map_assigned.bot_client.district_region === map_assigned.district_region) {