subscribe to profiles
This commit is contained in:
@@ -7,7 +7,7 @@ const Post = require("./../def/post.js");
|
||||
DB.getDB.then((DB)=>{
|
||||
|
||||
const getProfileId = (req)=>{
|
||||
return DB.ObjectID(req.cookies.profile_id);
|
||||
return DB.ObjectID(req.cookies.profile_id || req.query.profile_id || req.body.profile_id);
|
||||
}
|
||||
|
||||
router.get("/", async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user