diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index ec7b627cdf47d757ca4d7d83502aaa3b1665e130..f6da54b4b3c436dcbf276b873bb849267d4e5c43 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -58,7 +58,7 @@ router.route("/toucans") } }); } - toucan.toucan_id = toucan.title.replace(/\s+/g, '-').toLowerCase()+ toucan.date.getYear().toString(); + toucan.save(function(err) { if (err) { res.status(400).send(err);