From cdc60970289ec9d9e7ce9d82f2d47c1377e2a60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Sun, 16 Jan 2022 20:14:42 +0100 Subject: [PATCH] try to speak mangoose --- backend/routes/routesToucan.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index 764da14..c2c5e8a 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -157,9 +157,8 @@ router.route("/img/:id") router.get('/pdf/url', (req, res) => { try { console.log(req.params.url); - console.log(urltoucans.path('urlId')); urltoucans. - match({_id: mongoose.Types.ObjectId('5fc9e888f47f0041d8b83719')}). + match({urlId: 'boule-2022'}). exec((err,data) => { if (err) { console.log(err); -- GitLab