From 09783e5fb0fa2a98845651a3629cca4a867f94ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 7 Nov 2017 19:27:02 +0900 Subject: [PATCH] Fix bug --- tools/migration/use-gridfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/migration/use-gridfs.js b/tools/migration/use-gridfs.js index 02c0b2f6ac..4401e83016 100644 --- a/tools/migration/use-gridfs.js +++ b/tools/migration/use-gridfs.js @@ -45,7 +45,7 @@ const migrateToGridFS = async (doc) => { async function main() { let i = 0; - const count = db.get('drive_files').count; + const count = await db.get('drive_files').count({}); const iterate = async () => { if (i == count) return true;