From 2810fbd3a05863be5a96ca98d1994835e25c5e16 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Dec 2017 13:34:36 +0900 Subject: [PATCH] Fix bug --- .../node.1510016282.change-gridfs-metadata-name-to-filename.js | 2 +- tools/migration/node.1510056272.issue_882.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/migration/node.1510016282.change-gridfs-metadata-name-to-filename.js b/tools/migration/node.1510016282.change-gridfs-metadata-name-to-filename.js index 9128d852c..d7b2a6eff 100644 --- a/tools/migration/node.1510016282.change-gridfs-metadata-name-to-filename.js +++ b/tools/migration/node.1510016282.change-gridfs-metadata-name-to-filename.js @@ -34,7 +34,7 @@ async function main () { 1, async (time) => { console.log(`${time} / ${idop}`) - const doc = await db.get('drive_files').find(query, { + const doc = await DriveFile.find(query, { limit: dop, skip: time * dop }) return Promise.all(doc.map(applyNewChange)) diff --git a/tools/migration/node.1510056272.issue_882.js b/tools/migration/node.1510056272.issue_882.js index aa1141325..302ef3de6 100644 --- a/tools/migration/node.1510056272.issue_882.js +++ b/tools/migration/node.1510056272.issue_882.js @@ -31,7 +31,7 @@ async function main() { 1, async (time) => { console.log(`${time} / ${idop}`) - const doc = await db.get('drive_files').find(query, { + const doc = await DriveFile.find(query, { limit: dop, skip: time * dop }) return Promise.all(doc.map(migrate))