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

@@ -25,7 +25,7 @@ DB.getDB.then((DB)=>{
router.get("/new", async (req, res) => {
let post = {
userid: getUserId(req),
content: req.query.content
...req.query
}
let postObj = new Post(post);
let dbr = await DB.newPost(postObj)