merged dev and added some challenge 1 functionality
This commit is contained in:
1 parent
8507c4faaf
commit
2ad43139de
27 files changed
+656
-135
No files matched your search
@@ -33,14 +33,12 @@ app.use(express.json());
|
||||
const { connectMongo, getCollection } = require("./src/database/connection");
|
||||
|
||||
let users;
|
||||
let rates;
|
||||
async function initDatabase() {
|
||||
const db = await connectMongo(mongoURI, database);
|
||||
|
||||
// For any collection, init here
|
||||
users = await getCollection(db, "users");
|
||||
plans = await getCollection(db, "plans");
|
||||
rates = await getCollection(db, "rates");
|
||||
}
|
||||
|
||||
/*** ROUTINGS ***/
|
||||
|
||||
Reference in new issue
Block a user