working on users having multiple profiles
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user