diff options
| author | otofune <otofune@gmail.com> | 2017-11-07 22:57:48 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-11-07 22:57:48 +0900 |
| commit | 9f2dc28088ef546f2b552aebb54346e0bcebcb37 (patch) | |
| tree | 0f0fce6cd09dc1590689f4fa5684eca5025d34a5 /tools/migration | |
| parent | fix (diff) | |
| download | sharkey-9f2dc28088ef546f2b552aebb54346e0bcebcb37.tar.gz sharkey-9f2dc28088ef546f2b552aebb54346e0bcebcb37.tar.bz2 sharkey-9f2dc28088ef546f2b552aebb54346e0bcebcb37.zip | |
fix
Diffstat (limited to 'tools/migration')
| -rw-r--r-- | tools/migration/use-gridfs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/migration/use-gridfs.js b/tools/migration/use-gridfs.js index bb7070f553..a9d2b12e95 100644 --- a/tools/migration/use-gridfs.js +++ b/tools/migration/use-gridfs.js @@ -46,7 +46,7 @@ const migrateToGridFS = async (doc) => { } async function main() { - const count = await DriveFile.count({}); + const count = await db.get('drive_files').count({}); console.log(`there are ${count} files.`) |