mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 17:10:39 +01:00
Fix bug
This commit is contained in:
parent
731591082f
commit
2810fbd3a0
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ async function main () {
|
|||
1,
|
||||
async (time) => {
|
||||
console.log(`${time} / ${idop}`)
|
||||
const doc = await db.get('drive_files').find(query, {
|
||||
const doc = await DriveFile.find(query, {
|
||||
limit: dop, skip: time * dop
|
||||
})
|
||||
return Promise.all(doc.map(applyNewChange))
|
||||
|
|
|
@ -31,7 +31,7 @@ async function main() {
|
|||
1,
|
||||
async (time) => {
|
||||
console.log(`${time} / ${idop}`)
|
||||
const doc = await db.get('drive_files').find(query, {
|
||||
const doc = await DriveFile.find(query, {
|
||||
limit: dop, skip: time * dop
|
||||
})
|
||||
return Promise.all(doc.map(migrate))
|
||||
|
|
Loading…
Reference in a new issue