From 197c6b722906595c66c1343858f013fa648a19e5 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 30 Dec 2023 17:15:16 +1100 Subject: [PATCH] Oversight on isActive flag --- src/modules/MPModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/MPModule.ts b/src/modules/MPModule.ts index 9515dd0..5ce5f6e 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -78,7 +78,7 @@ export default async(client:TClient)=>{ // Fetch the list of servers from Redis and submit the array to newServerEntry, note that the server's // embed can appear in different order on each cache pull, that's how Redis displays the servers in the array. const cachedServers = await client.MPServer.findInCache(); - let srvEmbedArray = await Promise.all(cachedServers.map(srv=>newServerEntry(srv))); + let srvEmbedArray = await Promise.all(cachedServers.filter(s=>s.isActive).map(srv=>newServerEntry(srv))); message.edit({content: refreshIntrvlTxt, embeds: srvEmbedArray}); // Locate the Multifarm server via port and call the webhook with that server's details. (Adddi's server)