mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(tools): connected to mongo message (#51683)
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user