From ebf329e3c1344ea9d3b6e830ff652f5c4f3e86df 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:27:37 +0100
Subject: [PATCH] try to speak mangoose

---
 backend/routes/routesToucan.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js
index 8491e54..677f8bf 100644
--- a/backend/routes/routesToucan.js
+++ b/backend/routes/routesToucan.js
@@ -158,6 +158,7 @@ router.route("/img/:id")
         try {  
               urltoucans.
               match({urlId: 'boule-2022'}).
+              getfield("urlId").
               exec((err,data) => {
                 if (err) {
                   console.log(err);
-- 
GitLab