From 24ecd1be2882073ea01f5200fb599294a312dfcf Mon Sep 17 00:00:00 2001 From: Wingysam Date: Fri, 30 Nov 2018 16:56:48 -0500 Subject: [PATCH] Fix adding note with item --- routes/wishlist/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/wishlist/index.js b/routes/wishlist/index.js index 892b4a8..382fb0d 100644 --- a/routes/wishlist/index.js +++ b/routes/wishlist/index.js @@ -63,6 +63,7 @@ module.exports = (db) => { item.name = (productData ? productData.name : req.body.itemUrlOrName); item.addedBy = req.user._id; item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id); + item.note = req.body.note; if (isUrl) item.url = potentialUrl; item.id = uuid(); const doc = await db.get(req.params.user);