upd scripts

This commit is contained in:
zkldi
2021-04-24 16:52:36 +01:00
parent ab96877a72
commit 0a67bd297c
2 changed files with 15 additions and 1 deletions
@@ -0,0 +1,14 @@
import monk from "monk";
import fs from "fs";
import path from "path";
const ktBlackDB = monk(`${process.env.MONGO_BASE_URL}/ktblackdb`);
(async () => {
let songs = await ktBlackDB.get("songs-iidx").find({}, { projection: { _id: 0 } });
fs.writeFileSync(
path.join(__dirname, "../test-utils/test-data/kamaitachi/ktblack-songs-iidx.json"),
JSON.stringify(songs)
);
})();