fix issue of downgrading account not cleaning up db

This commit is contained in:
adueck 2024-03-12 22:22:50 -04:00
parent 1a3d89f63f
commit 8c63814e89
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ export async function deleteCouchDbAuthUser(uuid: T.UUID): Promise<void> {
if (!user.docs.length) return;
const u = user.docs[0];
await authUsers.destroy(u._id, u._rev);
await nano.db.destroy(getWordlistDbName(uuid));
}
export async function updateLingdocsUser(