From f03d189f04c89f9adf5e74812a017cbb53ab4b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= Date: Wed, 24 Jan 2024 16:47:07 +0100 Subject: [PATCH] Make repairPad.js more verbose --- src/bin/repairPad.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/repairPad.js b/src/bin/repairPad.js index 7983fc88d..ed1d83659 100644 --- a/src/bin/repairPad.js +++ b/src/bin/repairPad.js @@ -43,7 +43,9 @@ let valueCount = 0; neededDBValues.push(`pad:${padId}:chat:${chat}`); } // now fetch and reinsert every key + console.log('Fetch and reinsert every key'); for (const key of neededDBValues) { + if (valueCount % 100 === 0) console.log(valueCount + "/" + neededDBValues.length); const value = await db.get(key); // if it isn't a globalAuthor value which we want to ignore.. // console.log(`Key: ${key}, value: ${JSON.stringify(value)}`);