Display progress

This commit is contained in:
こぴなたみぽ 2017-11-07 19:42:29 +09:00 committed by GitHub
parent 10eee32035
commit 823a3d765e

View File

@ -49,6 +49,7 @@ async function main() {
const iterate = async () => {
if (i == count) return true;
console.log(`${i} / ${count}`);
const doc = (await db.get('drive_files').find({}, { limit: 1, skip: i }))[0]
const res = await migrateToGridFS(doc);
if (!res) {