Skip to content
Snippets Groups Projects
Commit 7ea76684 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

from findOne to match

parent e75a11d1
No related branches found
No related tags found
1 merge request!4Url/year/title
......@@ -140,7 +140,7 @@ router.route("/img/:id")
router.route("/pdf/:urlID")
.get(celebrate({params: validURL}), function(req,res) {
urltoucans.findOne({urlID: req.params.url}, (err,data) => {
urltoucans.match({urlID: req.params.urlID}, (err,data) => {
if (err) {
res.end(500);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment