feat: null handling

This commit is contained in:
TrèsAbhi committed 2024-04-15 13:25:35 -05:00
1 parent dccfe3d652
commit 4ff5f7cdeb
6 files changed
+41 -19

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
import { Locale } from 'discord.js';
import { chunk, times } from 'lodash';
import { compress } from 'lz4js';
import { argv } from 'process';
@@ -64,7 +63,7 @@ for (const batch of batches) {
let playersDone = 0;
const players = await Promise.all(
chunk.users.map(async (user) => {
const tanks = await getTankStats(region, user.blitz, Locale.EnglishUS);
const tanks = await getTankStats(region, user.blitz);
console.log(`Player ${++playersDone} of ${chunk.users.length}`);