From 6ea01ca64032c3ba8eab7f491f48bbb5fcd423dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Mon, 14 Feb 2022 15:52:05 +0100 Subject: [PATCH] try to find last toucan in a fast way --- backend/routes/routesToucan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index 10b1d2c..19448c6 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -165,7 +165,7 @@ router.get('/pdf/lastToucan', (res) => { idMax = toucans[i]._id; } } - console.log(idMax); + res.sendFile(path.resolve(env.savedExtensions[1].path,idMax+".pdf")); } } -- GitLab