This commit is contained in:
syuilo 2017-12-11 13:34:36 +09:00
parent 731591082f
commit 2810fbd3a0
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ async function main () {
1, 1,
async (time) => { async (time) => {
console.log(`${time} / ${idop}`) console.log(`${time} / ${idop}`)
const doc = await db.get('drive_files').find(query, { const doc = await DriveFile.find(query, {
limit: dop, skip: time * dop limit: dop, skip: time * dop
}) })
return Promise.all(doc.map(applyNewChange)) return Promise.all(doc.map(applyNewChange))

View File

@ -31,7 +31,7 @@ async function main() {
1, 1,
async (time) => { async (time) => {
console.log(`${time} / ${idop}`) console.log(`${time} / ${idop}`)
const doc = await db.get('drive_files').find(query, { const doc = await DriveFile.find(query, {
limit: dop, skip: time * dop limit: dop, skip: time * dop
}) })
return Promise.all(doc.map(migrate)) return Promise.all(doc.map(migrate))