mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
19 lines
268 B
TypeScript
19 lines
268 B
TypeScript
import db from "external/mongo/db";
|
|
|
|
(async () => {
|
|
const charts = await db.charts.chunithm.find({});
|
|
|
|
for (const c of charts) {
|
|
await db.charts.chunithm.update(
|
|
{
|
|
_id: c._id,
|
|
},
|
|
{
|
|
$set: {
|
|
"data.inGameID": c.songID,
|
|
},
|
|
}
|
|
);
|
|
}
|
|
})();
|