steamutils 1.1.40 → 1.1.42
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2483,7 +2483,8 @@ class SteamUser {
|
|
2483
2483
|
if (!Started_playing_CS_GO || !(Started_playing_CS_GO = moment(Started_playing_CS_GO.replace('GMT', '+00'), `YYYY-MM-DD HH:mm:ss Z`)).isValid()) {
|
2484
2484
|
Started_playing_CS_GO = null
|
2485
2485
|
}
|
2486
|
-
|
2486
|
+
|
2487
|
+
await Promise.all(matchHistoryTypes.map(async (matchHistoryType) => {
|
2487
2488
|
results[matchHistoryType] = await this._getFullHistoryMatches({
|
2488
2489
|
matchHistoryType,
|
2489
2490
|
cbOnMatch,
|
@@ -2492,7 +2493,8 @@ class SteamUser {
|
|
2492
2493
|
Started_playing_CS_GO,
|
2493
2494
|
shouldStop,
|
2494
2495
|
})
|
2495
|
-
}
|
2496
|
+
}))
|
2497
|
+
|
2496
2498
|
return results
|
2497
2499
|
}
|
2498
2500
|
|
@@ -2514,7 +2516,7 @@ class SteamUser {
|
|
2514
2516
|
result = await this._getHistoryMatches(matchHistoryType, result?.continue_token)
|
2515
2517
|
stop = shouldStop({
|
2516
2518
|
maxPage,
|
2517
|
-
currentPage: page,
|
2519
|
+
currentPage: ++page,
|
2518
2520
|
continue_token: result.continue_token,
|
2519
2521
|
continue_text: result.continue_text,
|
2520
2522
|
matchHistoryType,
|