Skip to content
Snippets Groups Projects
Commit 8fe000a2 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

keeping date and title in urltoucans

parent 73162d9d
No related branches found
No related tags found
1 merge request!4Url/year/title
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment