Skip to content
Snippets Groups Projects
Commit e4643f05 authored by Alan Chamathil's avatar Alan Chamathil
Browse files

Fixed retrieving notifications

parent 0700c73a
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ router.get("/info/:id",(req,res) =>{ ...@@ -20,7 +20,7 @@ router.get("/info/:id",(req,res) =>{
// grab the userid // grab the userid
// retrieve all the notifcations stored in the database // retrieve all the notifcations stored in the database
Notification.findById(req.params.id).then((notifiaction) => { Notification.find({userid:req.params.id}).then((notifiaction) => {
if(!notifiaction){ if(!notifiaction){
return res.status(404).send(); return res.status(404).send();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment