fix issue of downgrading account not cleaning up db
This commit is contained in:
parent
1a3d89f63f
commit
8c63814e89
|
@ -109,6 +109,7 @@ export async function deleteCouchDbAuthUser(uuid: T.UUID): Promise<void> {
|
||||||
if (!user.docs.length) return;
|
if (!user.docs.length) return;
|
||||||
const u = user.docs[0];
|
const u = user.docs[0];
|
||||||
await authUsers.destroy(u._id, u._rev);
|
await authUsers.destroy(u._id, u._rev);
|
||||||
|
await nano.db.destroy(getWordlistDbName(uuid));
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function updateLingdocsUser(
|
export async function updateLingdocsUser(
|
||||||
|
|
Loading…
Reference in New Issue