From 06bfbdec189c283fc59efe64fb3d42dcfccfa43d Mon Sep 17 00:00:00 2001 From: am97 Date: Wed, 24 Jan 2024 19:42:43 +0100 Subject: [PATCH] Make repairPad.js more verbose (#6117) --- 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)}`);