mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
(cherry picked from commit 9ff251dd96)
Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/14597
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
import cleanupUser from './cleanupUser';
|
|
import { getEmailChangeTarget, getEmailChangeUser } from './users.email';
|
|
|
|
async function globalTeardown() {
|
|
const user = getEmailChangeUser();
|
|
for (const email of [getEmailChangeTarget(), user.email]) {
|
|
try {
|
|
await cleanupUser({ email, password: user.password });
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default globalTeardown;
|