mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 06:27:34 -07:00
Display progress
This commit is contained in:
parent
10eee32035
commit
823a3d765e
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ async function main() {
|
||||||
|
|
||||||
const iterate = async () => {
|
const iterate = async () => {
|
||||||
if (i == count) return true;
|
if (i == count) return true;
|
||||||
|
console.log(`${i} / ${count}`);
|
||||||
const doc = (await db.get('drive_files').find({}, { limit: 1, skip: i }))[0]
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue