-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmapmergetest.js
49 lines (34 loc) · 1.29 KB
/
mapmergetest.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
39
40
41
42
43
44
45
46
47
48
49
const mysql = require("./api/database");
const Maps = require("./api/maps");
const Assault = require("./api/assault");
const CTF = require("./api/ctf");
const Domination = require("./api/domination");
const Combogib = require("./api/combogib");
const Weapons = require("./api/weapons");
const Players = require("./api/players");
const PowerUps = require("./api/powerups");
const Telefrags = require("./api/telefrags");
const WinRate = require("./api/winrate");
const Matches = require("./api/matches");
(async () =>{
const a = new Assault();
const m = new Maps();
const c = new CTF();
const d = new Domination();
const cg = new Combogib();
const w = new Weapons();
const p = new Players();
const pow = new PowerUps();
const t = new Telefrags();
const win = new WinRate();
// await p.fixDuplicateMapTotals(1);
const mm = new Matches();
//await m.merge(2, 5, mm, a, c, d, cg, w, p, pow, t, win);
//merge(oldId, newId, matchManager, assaultManager, ctfManager, domManager, combogibManager, weaponsManager,
//playersManager, powerupsManager, teleFragsManager, winrateManager
//await win.recalculateMapHistory(1);
//const cg = new Combogib();
//await cg.fixDuplicatePlayerTotals();
await m.deleteAllMatches(5);
process.exit();
})();