Ignore errors from useCurrentFest/ConfigureAnalyticsQuery

This commit is contained in:
Samuel Elliott 2022-10-31 16:01:02 +00:00
parent 5014e32756
commit 0935402b9d
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 14 additions and 4 deletions

View File

@ -71,8 +71,13 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
const {splatnet, data} = await getBulletToken(storage, token, argv.zncProxyUrl, true);
const friends = await splatnet.getFriends();
await splatnet.getCurrentFest();
await splatnet.getConfigureAnalytics();
Promise.all([
splatnet.getCurrentFest(),
splatnet.getConfigureAnalytics(),
]).catch(err => {
debug('Error in useCurrentFest/ConfigureAnalyticsQuery', err);
});
return new SplatNet3User(splatnet, data, friends);
}) : null;

View File

@ -89,8 +89,13 @@ export default class SplatNet3Monitor extends EmbeddedLoop {
}
const history = await this.splatnet!.getHistoryRecords();
await this.splatnet!.getConfigureAnalytics();
await this.splatnet!.getCurrentFest();
Promise.all([
this.splatnet!.getCurrentFest(),
this.splatnet!.getConfigureAnalytics(),
]).catch(err => {
debug('Error in useCurrentFest/ConfigureAnalyticsQuery', err);
});
debug('Authenticated to SplatNet 3 %s - player %s#%s (title %s, first played %s)', this.data!.version,
history.data.currentPlayer.name,