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