1
0
Fork 1
mirror of https://example.com synced 2024-11-24 03:46:44 +09:00
This commit is contained in:
syuilo 2017-11-07 19:19:19 +09:00
parent b2a2f98d6a
commit 109dd7f747

View file

@ -49,7 +49,7 @@ async function main() {
const iterate = async () => { const iterate = async () => {
if (i == count) return true; if (i == count) return true;
const doc = await db.get('drive_files').find({}, { skip: i }) const doc = await db.get('drive_files').find({}, { limit: 1, skip: i })
const res = await migrateToGridFS(doc); const res = await migrateToGridFS(doc);
if (!res) { if (!res) {
return false; return false;