Add bms chart orphaning support

This commit is contained in:
zkldi
2021-09-07 07:16:25 +01:00
parent 304959849e
commit e89ee76dc6
10 changed files with 247 additions and 16 deletions
+5
View File
@@ -3,6 +3,7 @@ import db from "external/mongo/db";
(async () => {
const uscSongCount = await db.songs.usc.find({});
const bmsSongCount = await db.songs.bms.find({});
const Counters: CounterDocument[] = [
{
@@ -13,6 +14,10 @@ import db from "external/mongo/db";
counterName: "usc-song-id",
value: uscSongCount.length + 1,
},
{
counterName: "bms-song-id",
value: bmsSongCount.length + 1,
},
];
db.counters.insert(Counters).then(() => {