diff --git a/src/tools/move-drive-files.ts b/src/tools/move-drive-files.ts index 782ea664a..3921f9716 100644 --- a/src/tools/move-drive-files.ts +++ b/src/tools/move-drive-files.ts @@ -9,9 +9,9 @@ const limit = promiseLimit(16); DriveFile.find({ $or: [{ - withoutChunks: { $exists: false } + 'metadata.withoutChunks': { $exists: false } }, { - withoutChunks: false + 'metadata.withoutChunks': false }], 'metadata.deletedAt': { $exists: false } }, {