mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 17:46:43 -06:00
Fix bug
This commit is contained in:
parent
09783e5fb0
commit
dab9231fd8
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ async function main() {
|
||||||
|
|
||||||
const iterate = async () => {
|
const iterate = async () => {
|
||||||
if (i == count) return true;
|
if (i == count) return true;
|
||||||
const doc = await db.get('drive_files').find({}, { limit: 1, skip: i })
|
const doc = (await db.get('drive_files').find({}, { limit: 1, skip: i }))[0]
|
||||||
const res = await migrateToGridFS(doc);
|
const res = await migrateToGridFS(doc);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue