debugging account creating problem

This commit is contained in:
adueck 2023-12-16 18:05:39 +04:00
parent dd0ac0a27e
commit 25c17bb0bc
2 changed files with 2 additions and 6 deletions

View File

@ -41,9 +41,6 @@ async function main() {
}
process.stdout.write(`Checking for db for ${user.name} - ${user.email}...`);
const userDb = nano.db.use(user.wordlistDbName);
if (user.subscription) {
paidUsersEmails.push(user.email);
}
try {
// await userDb.insert(
// {
@ -70,7 +67,7 @@ async function main() {
console.log("RR");
}
} catch (e) {
console.log(e);
// console.log(e);
console.log("❌");
console.log(`needs ${user.wordlistDbName} - ${user.userId}`);
}
@ -89,8 +86,6 @@ async function main() {
}, []);
console.log("STRAY USERDBS");
console.log(strayDbs);
console.log("PAID USERS EMAILS");
console.log(paidUsersEmails.join(","));
return "done";
}

View File

@ -184,6 +184,7 @@ export async function addCouchDbAuthUser(
};
await usersDb.insert(authUser);
const userDb = nano.db.use(userDbName);
console.log("trying to add auth to the users db");
await userDb.insert(
{
// @ts-ignore