1
0
mirror of https://github.com/hotomoe/hotomoe synced 2025-01-18 07:42:56 +09:00
This commit is contained in:
syuilo 2017-11-07 19:33:54 +09:00
parent 09783e5fb0
commit dab9231fd8

View File

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