fix/tidy auth+user routers
This commit is contained in:
3 files changed
+1
-9
No files matched your search
@@ -16,6 +16,7 @@ const connectMongo = async (mongoURI, databaseName) => {
|
||||
* getCollection object to interact with MongoDB
|
||||
* @param {MongoClient} dbo
|
||||
* @param {string} collection
|
||||
* @return {MongoClient.collection}
|
||||
*/
|
||||
const getCollection = async (dbo, collection) => {
|
||||
return await dbo.collection(collection);
|
||||
|
||||
Reference in new issue
Block a user