fix(tools): connected to mongo message (#51683)

This commit is contained in:
Benjamin Daniel
2023-09-29 10:05:26 +01:00
committed by GitHub
parent 1efa4a5935
commit 4f510a6b88
+3 -2
View File
@@ -173,8 +173,6 @@ const blankUser = {
const client = new MongoClient(MONGOHQ_URL, { useNewUrlParser: true });
log('Connected successfully to mongo');
const db = client.db('freecodecamp');
const user = db.collection('user');
@@ -201,6 +199,9 @@ const dropUsers = async function () {
};
const run = async () => {
await client.connect();
log('Connected successfully to mongo');
await dropUserTokens();
await dropUsers();
if (args.includes('certified-user')) {