Make repairPad.js more verbose

This commit is contained in:
Andrés Maldonado 2024-01-24 16:47:07 +01:00
parent 1b0660eaf5
commit f03d189f04

View file

@ -43,7 +43,9 @@ let valueCount = 0;
neededDBValues.push(`pad:${padId}:chat:${chat}`); neededDBValues.push(`pad:${padId}:chat:${chat}`);
} }
// now fetch and reinsert every key // now fetch and reinsert every key
console.log('Fetch and reinsert every key');
for (const key of neededDBValues) { for (const key of neededDBValues) {
if (valueCount % 100 === 0) console.log(valueCount + "/" + neededDBValues.length);
const value = await db.get(key); const value = await db.get(key);
// if it isn't a globalAuthor value which we want to ignore.. // if it isn't a globalAuthor value which we want to ignore..
// console.log(`Key: ${key}, value: ${JSON.stringify(value)}`); // console.log(`Key: ${key}, value: ${JSON.stringify(value)}`);