Fix bug
This commit is contained in:
parent
a47015e582
commit
c78d30f500
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue