1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-16 20:00:59 -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 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}`);