From 73162d9db8a40b09a4750da219ae06278ce653d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Sat, 22 Jan 2022 01:27:18 +0100 Subject: [PATCH] doesn't work --- 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 cd622ff..f22d853 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -21,8 +21,7 @@ const urltoucans = Toucan.aggregate([ {$addFields: {urlId: {$concat:["$titlelcnospace","-","$year"]}}}, - {$unset:["titlelc","year","titlelcnospace","title","date"]}, - {$out: "urls"} + {$unset:["titlelc","year","titlelcnospace","title","date"]} ]); router.route("/toucans") -- GitLab