forked from ByMykel/CSGO-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.js
38 lines (34 loc) · 1.21 KB
/
update.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { loadData } from "./services/main.js";
import { getCollectibles } from "./services/collectibles.js";
import { getKeys } from "./services/keys.js";
import { getAgents } from "./services/agents.js";
import { getCrates } from "./services/crates.js";
import { getCollections } from "./services/collections.js";
import { loadTranslations } from "./services/translations.js";
import { getGraffiti } from "./services/graffiti.js";
import { getPatches } from "./services/patches.js";
import { getStickers } from "./services/stickers.js";
import { getSkins } from "./services/skins.js";
import { LANGUAGES_URL } from "./constants.js";
import { getMusicKits } from "./services/musicKits.js";
import { getSkinsNotGrouped } from "./services/skinsNotGrouped.js";
await loadData();
for (const language of LANGUAGES_URL) {
console.log(`Language: ${language.language}`);
try {
await loadTranslations(language);
getAgents();
getCollectibles();
getCollections();
getCrates();
getGraffiti();
getKeys();
getMusicKits();
getPatches();
getSkins();
getSkinsNotGrouped();
getStickers();
} catch (error) {
console.log(error);
}
}