From 8fe000a2bf89a6837751ed485d64317f162dbb6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr>
Date: Mon, 31 Jan 2022 13:05:52 +0100
Subject: [PATCH] keeping date and title in urltoucans

---
 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 f22d853..1b331db 100644
--- a/backend/routes/routesToucan.js
+++ b/backend/routes/routesToucan.js
@@ -21,7 +21,7 @@ const urltoucans = Toucan.aggregate([
     {$addFields:
         {urlId:
             {$concat:["$titlelcnospace","-","$year"]}}}, 
-    {$unset:["titlelc","year","titlelcnospace","title","date"]}
+    {$unset:["titlelc","year","titlelcnospace"]}
 ]);
 
 router.route("/toucans")
-- 
GitLab