1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 20:30: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 e0c79f92cd
commit 843df43861

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}`);