working on users having multiple profiles

This commit is contained in:
Adolfo Reyna
2021-08-17 11:28:45 -07:00
parent f909233533
commit 416c14d03b
9 changed files with 84 additions and 48 deletions

View File

@@ -4,7 +4,7 @@ const ObjectID = mongo.ObjectID;
const DBName = "EMI_SOCIAL";
const mongoUrl = process.env.MONGO_URL;
const postDB = require("./dbTools/post.js");
const userDB = require("./dbTools/user.js");
const profileDB = require("./dbTools/profile.js");
const getDB = new Promise((resolve, reject) => {
@@ -51,7 +51,7 @@ const getDB = new Promise((resolve, reject) => {
}
postDB(DB);
userDB(DB);
profileDB(DB);
resolve(DB);
});