1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Attempt to fix partial response from Multifarm

This commit is contained in:
toast-ts 2024-04-21 12:53:37 +10:00
parent 9c692a6812
commit 858e81fbf0

View File

@ -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 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; 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; else return null;
} catch(err) { } catch(err) {
Logger.console('log', loggingPrefix, `Couldn't request ${server.serverName} for data: ${err.message}`); Logger.console('log', loggingPrefix, `Couldn't request ${server.serverName} for data: ${err.message}`);