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:
parent
e0c79f92cd
commit
843df43861
@ -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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user