From 843df43861e7a21219f85b7555a825dd4f070b86 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 21 Apr 2024 12:53:37 +1000 Subject: [PATCH] Attempt to fix partial response from Multifarm --- 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 71316d7..4ee726b 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -170,7 +170,7 @@ export async function requestServerData(client:TClient, server:IServerExt):Promi ]); const dss = DSSR.status === 'fulfilled' && DSSR.value && DSSR.value.server ? DSSR.value : null; const csg = CSGR.status === 'fulfilled' && CSGR.value && CSGR.value.slotSystem ? CSGR.value : null; - if (dss && csg) return {dss, csg}; + if (dss || csg) return {dss, csg}; else return null; } catch(err) { Logger.console('log', loggingPrefix, `Couldn't request ${server.serverName} for data: ${err.message}`);