subscribe to profiles

This commit is contained in:
Adolfo Reyna
2021-09-02 10:53:50 -07:00
parent ba2b0bcbd6
commit fa0d6ee199
5 changed files with 52 additions and 5 deletions

View File

@@ -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) => {