mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 15:19:50 +03:00
Add bms chart orphaning support
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user